﻿/* =============================================================================
   Custom Fonts
   ========================================================================== */

@font-face {
  font-family: 'YouYuan';
  src: url('../fonts/youyuan/youyuan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
   container
   ========================================================================== */

@font-face {
  font-family: 'JBMB';
  src: url('../fonts/JBMB.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
   container
   ========================================================================== */

.container-narrow {
  margin: 0 auto;
  max-width:970px;
}

.container-narrow > footer {
  margin-top: 20px;
  text-align: center;
}
.container-narrow > footer p {
  background-color: rgba(245,245,245,0.75);
  padding: 5px;
  display: inline-block;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

/* =============================================================================
   Body and structure
   ========================================================================== */

body {
  position: relative;
  background-color: #fff;
  background-repeat: repeat-x;
  background-position: 0 40px;
  padding-bottom: 70px;
  font-size: 18px; /* 增加基础字体大小从默认16px到18px */
  line-height: 1.6; /* 增加行高以提高可读性 */
}

.content {
  padding: 20px;
  margin: 20px -20px; /* negative indent the amount of the padding to maintain the grid system */
  -webkit-border-radius: 6px 6px 6px 6px;
  -moz-border-radius: 6px 6px 6px 6px;
  border-radius: 6px 6px 6px 6px;
  -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.75);
  -moz-box-shadow: 0 2px 102px rgba(0,0,0,.75);
  box-shadow: 0 2px 10px rgba(0,0,0,.75);
}

#sidebar {
  margin-left: 5px;
  padding-left: 15px;
  border-left: 1px solid #e0e0e0;
  font-size: 0.9em;
}

/* =============================================================================
   page
   ========================================================================== */

.page{
  margin: 1.0em 0em;
  padding-top: 25px;
  line-height: 1.5em;
  font-family: 'Open Sans',"Helvetica Neue", "Helvetica","Microsoft YaHei", "WenQuanYi Micro Hei", Arial, sans-serif;
  font-size: 0.8em;
}

.page p{
  margin: 1.0em 0em;
  font-size: 1.05em; /* 增加段落字体大小 */
  /* line-height: 1.7em; 增加段落行高 */
}

.page .panel-heading {
  background-color: #eee;
  font-weight:bold;
  font-family: 'JBMB';
}

.page .panel-collapse .panel-body {
  padding: 9px 15px;
  padding-bottom: 0;
  background-color: #F5F5D5;
  font-size: 16px;
  line-height: 24px;
}

.note {
  position: relative;
  margin-top: -20px;
}

/* =============================================================================
   pagination
   ========================================================================== */

.pagination {
  margin: 10px 0;
}

.pagination a{
  color:#555;  
}


/* =============================================================================
   List
   ========================================================================== */

li i {
  margin-right: 5px;
  margin-left: 5px;  
}

.listing-item {
  line-height: 24px;
}

.post-list-item {
  font-weight: bold;
}

/* =============================================================================
   hyper links
   ========================================================================== */

a{color:#1863a1}
a:focus{color:#0181eb}
a:hover{color:#0181eb}
a:active{color:#01579f}

a.label-anchor {
  position: relative;
  display: block;
  text-align: right;
  width: 200px;
  left: -210px;
  font-family: 'PT Sans', sans-serif;
}
a.label-anchor:target span {
  background-color: #b94a48;
}
a.label-anchor:hover {
  text-decoration: none;
}
a.label-anchor span {
  font-weight: bold;
  line-height: 0px;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  background-color: #666;
  padding: 1px 4px 2px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

a.inline-ref {
  border-bottom: dotted 1px #333;
  color: black;
}
a.inline-ref:hover {
  text-decoration: none;
  border-bottom: solid 1px #000;
}

/* =============================================================================
  blockquote
   ========================================================================== */

blockquote {
  border-left:5px solid #cccccc;
  font-size: 1.1em; /* 从1em增加到1.1em */
  background-color: #fff;
  padding: 0px 20px;
  /* line-height: 1.6em; 增加行高 */
}

blockquote p, blockquote ol, blockquote ul, blockquote li, .slogan{
  font-family: 'Open Sans',"Helvetica Neue", '楷体', 'STKaiti', "Kai", "kaiti", Helvetica, "Segoe UI", Ubuntu, "Hiragino Sans GB";
}

/* =============================================================================
   文章内容字体大小增强
   ========================================================================== */

/* 文章内容区域 */
.content, .post-content, .article-content {
  font-size: 1.1em;
  line-height: 1.7em;
}

/* 文章段落 */
.content p, .post-content p, .article-content p,
.page .content p, .post p, article p {
  font-size: 1.05em;
  line-height: 1.6em;
  margin: 1.2em 0;
  font-weight: bold;
  font-family: 'JBMB';
  letter-spacing: 0.05em;
  text-shadow: 0.05px 0.05px 5px #7979799a;
}

/* 列表项 */
/* .content ul, .content ol, .post-content ul, .post-content ol,
.article-content ul, .article-content ol, .page ul, .page ol {
  font-size: 1.05em;
  line-height: 1.6em;
}

.content li, .post-content li, .article-content li, .page li {
  font-size: 1.05em;
  line-height: 1.6em;
  margin: 0.5em 0;
} */

/* 表格 */
/* .content table, .post-content table, .article-content table, .page table {
  font-size: 1.05em;
}

.content td, .content th, .post-content td, .post-content th,
.article-content td, .article-content th, .page td, .page th {
  font-size: 1em;
  line-height: 1.5em;
  padding: 12px 8px;
} */

/* =============================================================================
   img, video
   ========================================================================== */

img, video {
  /* max-width: 97.5%; */
  margin: 15px, auto;
  display: block;
  height: auto;
}

/* =============================================================================
   scroll to top
   ========================================================================== */

#gotop{ 
  display:block;  
  width:36px; 
  height:36px;
  position:fixed;  
  bottom:40px;  
  right:30px; 
  border-radius:7px;
  text-decoration:none;  
  display:none;  
  background-color:#999999;     
}
#gotop span{ 
  display:block; 
  color:#dddddd; 
} 
#gotop span:hover{ 
  color:#cccccc; 
} 
#gotop span{
  font-size:24px;
  text-align:center;
}

/* =============================================================================
   Music Player Button
   ========================================================================== */

#music-player{
  display:block;
  width:50px;
  height:50px;
  position:fixed;
  bottom:40px;
  right:80px;
  border-radius:50%;
  text-decoration:none;
  background-color:#292929;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

#music-player:hover {
  background-color:#363636;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

#music-player span{
  display:block;
  color:#ffffff;
  font-size:22px;
  text-align:center;
  line-height:50px;
  transform: translateX(3%);
  transition: font-size 0.2s ease;
}

#music-player span.pause-icon {
  transform: translateX(-3%);
  transform: translateY(-6%);
  font-size: 30px; /* 22px * 1.3 ≈ 28px，放大30% */
}

#music-player.playing {
  background-color:#292929;
}

#music-player.playing:hover {
  background-color:#363636;
}

/* =============================================================================
   Protected Category Styles
   ========================================================================== */

.protected-category {
  cursor: pointer;
}

.protected-category:hover {
  text-decoration: none;
}

.password-prompt {
  /* background-color: #f8f9fa; */
  border-radius: 5px;
  margin: 5px 5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 12px;
  font-weight: bold;
  font-family: "YaHei";
}

.password-prompt p {
  display: none;
  margin: 0;
  white-space: nowrap;
}

.password-input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 14px;
  width: 150px;
  margin: 0;
}

.password-input:focus {
  outline: none;
  border-color: #393939;
  box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

.unlock-btn {
  background-color: #2b2b2b;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  /* transform: translateY(10%); */
}

.unlock-btn:hover {
  background-color: #393939;
}

.fa-lock {
  color: #1863a1;
  margin-left: 2.5px;
  margin-right: 2.5px;
}

.fa-folder-open {
  color: #1863a1;
}

.panel-title {
  position: relative;
  display: inline-block;
  padding-right: 25px; /* 为角标留出空间 */
}

.post-count {
  position: absolute;
  top: -1px;
  left: calc(67% + 8px);
  /* background-color: #dc3545; */
  color: #1863a1;
  font-size: 13px;
  font-weight: bolder;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  height: 16px;
  line-height: 14px;
  text-align: left;
  font-family: "YaHei" !important;
  /* box-shadow: 0 1px 2px rgba(0,0,0,0.3); */
  z-index: 10;
}

.protected-category .post-count {
  /* background-color: #6c757d; */
}

/* 当数量为0时隐藏角标 */
.post-count:empty,
.post-count[data-count="0"] {
  display: none;
}

/* =============================================================================
   L站生成器样式
   ========================================================================== */

.lstation-generator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  /* 确保默认为块级布局 */
  display: block;
}

/* 电脑端左右分栏布局 */
@media (min-width: 768px) {
  .lstation-generator-container {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    flex-direction: row;
  }

  .generator-left-panel {
    flex: 1;
    min-width: 400px;
    /* background-color: #f9f9f9 !important; */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  }

  .generator-right-panel {
    flex: 1;
    min-width: 450px;
    /* background-color: #f9f9f9 !important; */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  }
}

/* 手机端保持原有布局 */
@media (max-width: 767px) {
  .lstation-generator-container {
    max-width: 600px;
    display: block;
  }

  .generator-left-panel,
  .generator-right-panel {
    width: 100%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }

  .generator-right-panel:last-child {
    margin-bottom: 0;
  }
}

.lstation-generator-container .form-group {
  margin-bottom: 20px;
}

.lstation-generator-container label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}



.lstation-generator-container .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
}

.lstation-generator-container .btn-primary {
  background-color: #007bff;
  color: white;
}

.lstation-generator-container .btn-success {
  background-color: #28a745;
  color: white;
}

.lstation-generator-container .btn-secondary {
  background-color: #6c757d;
  color: white;
}

.lstation-generator-container .btn:hover {
  opacity: 0.9;
}

.lstation-generator-container .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#progress-container {
  margin: 20px 0;
}

.progress {
  height: 30px;
  background-color: #f8f9fa;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #007bff;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

#preview-container {
  text-align: center;
  margin-top: 30px;
}

#preview-area {
  margin: 20px 0;
}

/* 动态头像生成器的预览容器样式 */
.lstation-generator-container .preview-wrapper {
  display: inline-block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid #e0e0e0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* 默认横幅尺寸 */
  width: 600px;
  height: 168px;
  max-width: 90vw;
}

/* 动态背景生成器的预览容器样式 */
.background-generator-container ~ #preview-container .preview-wrapper,
#preview-container .preview-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: static;
}

/* 动态头像生成器的横幅类型预览框样式 */
.lstation-generator-container .preview-banner .preview-wrapper {
  width: 600px;
  height: 168px;
  max-width: 90vw;
}

/* 动态头像生成器的卡片类型预览框样式 */
.lstation-generator-container .preview-card .preview-wrapper {
  width: 400px;
  height: 267px;
  max-width: 90vw;
}

/* 动态头像生成器的响应式调整 */
@media (max-width: 768px) {
  .lstation-generator-container .preview-banner .preview-wrapper {
    width: 90vw;
    height: calc(90vw * 300 / 1067);
  }

  .lstation-generator-container .preview-card .preview-wrapper {
    width: 90vw;
    height: calc(90vw * 400 / 600);
  }
}

.preview-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* 动态头像生成器的预览图片样式 */
.lstation-generator-container ~ #preview-container #preview-canvas,
.lstation-generator-container ~ #preview-container #preview-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 动态背景生成器的预览图片样式 */
.background-generator-container ~ #preview-container #preview-canvas,
.background-generator-container ~ #preview-container #preview-gif,
#preview-container #preview-canvas,
#preview-container #preview-gif {
  max-width: 100%;
  height: auto;
  object-fit: contain !important;
  display: block;
  border: 2px solid #ddd;
  /* border-radius: 6px; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preview-controls {
  margin-top: 20px;
}

/* L站生成器页面头部样式 */
.page-header h2 {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.5em;
  color: #666;
  font-weight: normal;
  display: none;
}

.page-header h2 .title {
  font-style: italic;
}

.help-text {
  margin-top: 8px;
}

.help-text .text-muted {
  color: #6c757d;
  font-size: 12px;
}

/* 昵称输入框样式 */
.nickname-bar {
  min-height: 45px !important;
  padding: 16px 12px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

/* 选择状态显示 */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* 生成按钮样式 */
#generate-btn {
  margin-top: 35px;
  font-weight: bold;
  font-family: "YouYuan";
  background-color: #1863a1 !important;
  padding: 11px 15px !important;
  border: 1px solid #ddd !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

#download-gif-btn {
  font-weight: bold;
  font-family: "YouYuan";
  background-color: #08aa3b !important;
  padding: 11px 17px !important;
  border: 1px solid #ddd !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  margin-right: 10px;
}

#regenerate-btn {
  font-weight: bold;
  font-family: "YouYuan";
  color: white;
  background-color: #1863a1 !important;
  padding: 10.9px 15px !important;
  border: 1px solid #ddd !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  margin-left: 10px;
}

#custom-bg-btn {
  font-weight: bold;
  font-family: "YouYuan";
  background-color: rgba(122, 4, 106, 0.7) !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  border-radius: 5px !important;
}

#add-sticker-btn {
  font-weight: bold;
  font-family: "YouYuan";
  background-color: #aa2800b2 !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  border-radius: 5px !important;
}

#reset-layout-btn {
  font-weight: bold;
  font-family: "YouYuan";
  background-color: #6868689c !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  border-radius: 5px !important;
}

/* 方块加载动画 */
@keyframes square-animation {
  0% {
    left: 0;
    top: 0;
  }
  10.5% {
    left: 0;
    top: 0;
  }
  12.5% {
    left: 32px;
    top: 0;
  }
  23% {
    left: 32px;
    top: 0;
  }
  25% {
    left: 64px;
    top: 0;
  }
  35.5% {
    left: 64px;
    top: 0;
  }
  37.5% {
    left: 64px;
    top: 32px;
  }
  48% {
    left: 64px;
    top: 32px;
  }
  50% {
    left: 32px;
    top: 32px;
  }
  60.5% {
    left: 32px;
    top: 32px;
  }
  62.5% {
    left: 32px;
    top: 64px;
  }
  73% {
    left: 32px;
    top: 64px;
  }
  75% {
    left: 0;
    top: 64px;
  }
  85.5% {
    left: 0;
    top: 64px;
  }
  87.5% {
    left: 0;
    top: 32px;
  }
  98% {
    left: 0;
    top: 32px;
  }
  100% {
    left: 0;
    top: 0;
  }
}

.preview-text {
  font-size: 1.5em;
  color: #666;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

.loading-wrapper {
  text-align: center;
  font-weight: bold;
  padding: 30px 0;
  padding-top: 60px;
  /* background-color: #F5F5D5; */
  /* border: 2px solid #e0e0e0; */
  border-radius: 10px;
}

.loader {
  position: relative;
  width: 96px;
  height: 96px;
  transform: rotate(45deg);
  margin: 0 auto 20px;
}

.loader-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: 2px;
  border: 3.5px solid #161616d3;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: square-animation 10s ease-in-out infinite both;
}

.loader-square:nth-of-type(1) {
  animation-delay: -1.4285714286s;
}

.loader-square:nth-of-type(2) {
  animation-delay: -2.8571428571s;
}

.loader-square:nth-of-type(3) {
  animation-delay: -4.2857142857s;
}

.loader-square:nth-of-type(4) {
  animation-delay: -5.7142857143s;
}

.loader-square:nth-of-type(5) {
  animation-delay: -7.1428571429s;
}

.loader-square:nth-of-type(6) {
  animation-delay: -8.5714285714s;
}

.loader-square:nth-of-type(7) {
  animation-delay: -10s;
}

#loading-text {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
  font-weight: bold;
}

/* 修复下拉框显示问题 */
#character-select {
  height: auto !important;
  min-height: 45px;
  /* max-height: 10vh; */
  padding: 10px 12px;
  line-height: 1.6;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

#character-select option {
  padding: 10px 12px;
  line-height: 1.6;
  font-size: 15px;
  background-color: #fff;
  color: #333;
  min-height: 40px;
  display: block;
}

/* 字体选择框样式 */
#font-select {
  height: auto !important;
  min-height: 45px;
  /* max-height: 50vh; */
  padding: 10px 12px;
  line-height: 1.6;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

#font-select option {
  padding: 10px 12px;
  line-height: 1.6;
  font-size: 15px;
  background-color: #fff;
  color: #333;
  min-height: 40px;
  display: block;
}

/* 确保下拉选项有足够的高度 */
#character-select option:not(:empty) {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* 表单组间距 */
.lstation-generator-container .form-group {
  margin-bottom: 20px;
}

.lstation-generator-container .form-control {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 16px 15px;
  font-size: 15px;
  transition: border-color 0.3s ease;
  min-height: 50px;
  line-height: 1.5;
}

.lstation-generator-container .form-control:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 确保select下拉框样式正确 */
.lstation-generator-container select.form-control {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  /* 修复文本显示问题 */
  line-height: normal;
  height: auto;
  min-height: 50px;
  max-height: 50vh;
  display: flex;
  align-items: center;
  overflow-y: auto;
}

/* 确保select选项文本正确显示 */
.lstation-generator-container select.form-control option {
  padding: 8px 12px;
  line-height: 1.4;
  font-size: 15px;
  max-height: 50vh;
  overflow-y: auto;
}

/* 颜色选择器样式 */
.color-selector {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background-color: #fafafa;
}

.color-mode-selector {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.radio-label input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.color-picker-container {
  margin-bottom: 15px;
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.color-picker-group label {
  min-width: 60px;
  font-size: 14px;
  margin-bottom: 0;
}

.color-input {
  width: 37px;
  height: 35px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

/* 渐变角度选择器样式 */
.gradient-angle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  width: 150px;
}

.gradient-angle-group label {
  min-width: 60px;
  font-size: 14px;
  margin-bottom: 0;
}

.angle-input-container {
  position: relative;
  flex: 1;
  height: 35px;
  border: 2px solid #ddd;
  border-radius: 6px;
  /* background-color: #fff; */
  cursor: pointer;
  transition: border-color 0.3s ease;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.angle-input-container:hover {
  border-color: #007bff;
}

.angle-input-container.active {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.angle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

.angle-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #007bff;
  left: 25%; /* 默认90度位置 */
  transition: left 0.2s ease;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

.angle-value {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  padding: 0 10px;
}

.angle-value:focus {
  /* background-color: rgba(255, 255, 255, 0.9); */
  cursor: text;
}



/* 布局预览容器 */
.preview-section {
  /* padding-top: 20px; */
}

/* 预览容器居中样式 */
/* #preview-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
} */

#preview-container .preview-text {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

#preview-container .preview-wrapper {
  margin-bottom: 20px;
}

#preview-container .preview-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

#preview-container .preview-controls .btn {
  padding: 10px 20px;
  font-size: 14px;
}
.layout-preview-container {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background-color: #fafafa;
}

#layout-preview-canvas {
  border: 5px solid #6e6e6e;
  border-radius: 50%;
  background-color: #fff;
  cursor: grab;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

#layout-preview-canvas:active {
  cursor: grabbing;
}

.preview-controls {
  margin-top: 10px;
  text-align: center;
}

.preview-controls .btn {
  margin: 0 5px;
  font-size: 12px;
  padding: 6px 12px;
}

.preview-controls .help-text {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.help-text {
  font-size: 12px;
  color: #666;
}

/* 参数选择区域过渡效果 */
#parameter-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#parameter-section.hiding {
  opacity: 0;
  transform: translateY(-20px);
}

/* =============================================================================
   Headers
   ========================================================================== */
.brand{
  /* font-family: 'YouYuan', "YaHei", "Space Grotesk", sans-serif; */
}

header h1{
  font-weight:normal;
  line-height:1.2em;
  margin-bottom:0.6667em;

}
.page-header h1 span.split{
  margin-left: 10px;
  margin-right: 10px;
  border-right: solid #333 2px;
}

.page-header h1 span.title{
  font-weight: bolder;
  font-style: italic;
  font-size: 0.8em;
  font-family: "YaHei", "Space Grotesk", sans-serif;
}

.page-header h1 span.date{
  display:inline;
  position: absolute;
  font-size: 0.7em;
  font-weight: bold;
  color: #555;
  font-family: 'PT Sans Narrow', sans-serif;
}

h1{
  font-size:2em;
  line-height:0.9em;
  margin-bottom:0.6667em;
}

h1,h2,h3,h4,h5,h6{
  text-rendering:optimizelegibility;
  font-weight:bold;
  font-family: 'Open Sans', "Helvetica Neue", "Helvetica","Microsoft YaHei", "WenQuanYi Micro Hei",Arial, sans-serif;
}

h2{
  margin: 0.83em 0;
  color: green;
  border-bottom: 5px #ccc solid;
  padding-top: 10px;
  margin-top: -15px;
}

h3 {
  border-bottom: 1.5px solid #dcdce9;
  margin-top: -5px;
  color: #9C4C17;
}

h4 {
  color: #B94A48;
}

h2,section h1{font-size:1.7em} /* 从1.5em增加到1.7em */

h3,section h2,section section h1{font-size:1.5em} /* 从1.3em增加到1.5em */

h4,section h3,section section h2,section section section h1{font-size:1.2em} /* 从1em增加到1.2em */

h5,section h4,section section h3{font-size:1.1em} /* 从0.9em增加到1.1em */

h6,section h5,section section h4,section section section h3{font-size:1em} /* 从0.8em增加到1em */

.page-header {
  -webkit-background-clip: border-box;
  -webkit-background-origin: padding-box;
  -webkit-background-size: cover;
  /* background-color: #f5f5f5; */
  padding: 10px 20px 0px 20px;
  margin: -20px -20px 20px;
  background: #333;
  background: -moz-linear-gradient(top, #222, #000 50%);
  background: -webkit-gradient(linear, 0 0, 0 50%, from(#222), to(#000));
  color: #bbbbbb;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;  
}

h2,h3{
  margin: 0.5em 0px;
}
.page-header .brand{
  color: #bbbbbb;
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
  -webkit-transition: all .2s linear;
     -moz-transition: all .2s linear;
          transition: all .2s linear;
}

.page-header .brand:hover {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
}

/* =============================================================================
   Codes
   ========================================================================== */

.line{
  height: 20px;
}

/* =============================================================================
   Tables
   ========================================================================== */

table {
  border-collapse: separate;
  border-spacing: 0;
  vertical-align: middle;
}

th {
  padding: 12px 10px 12px 10px;
  border-bottom: 1px dashed #4088b8;
}

td {
  padding: 7px 10px 7px 10px;
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}


/* =============================================================================
   Local search
   ========================================================================== */


#local-search-result {
  scroll:auto;
  overflow:auto;
  max-height:3in;
  background-color: #fef;
  margin-bottom: 10px;
}

ul.search-result-list {
  padding-left: 20px;
  padding-right: 10px;
}

a.search-result-title {
  font-weight: bold;
}

p.search-result {
  color: #555;
}

em.search-keyword {
  border-bottom: 1px dashed #4088b8;
  font-weight: bold;
}


/**
 * 
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
  content: ""; /* 1 */
  display: table; /* 2 */
}

.cf:after {
  clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
  *zoom: 1;
}

/* =============================================================================
   子分类样式
   ========================================================================== */

/* 子分类标题样式 */
.subcategory-header {
  /* margin-top: 15px;
  margin-bottom: 10px;subcategory */
}

.subcategory-title {
  text-decoration: none;
  color: #1863a1;
  /* display: block; */
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  left: -26px;
}

.subcategory-title:hover {
  text-decoration: none;
  color: #337ab7;
}

.subcategory-title .post-count {
  /* position: relative; */
  margin-left: 10px;
  font-size: 13px;
  font-family: 'JBMB';
  top: -3.9px;
  /* float: right;
  background-color: #337ab7;
  color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-weight: bold;
  margin-left: 10px; */
}

.subcategory-collapse {
  margin-top: 5px;
}

/* 子分类文章列表样式 */
.subcategory-posts {
  margin-left: 10px;
  /* margin-top: 8px; */
  padding-left: 0;
  list-style: none;
}

.subcategory-posts .post-list-item {
  /* margin-bottom: 5px; */
  padding-left: 11px;
  position: relative;
}

.subcategory-posts .post-list-item:before {
  content: "•";
  position: absolute;
  left: 0px;
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

/* .subcategory-posts .post-list-item:hover {
  border-left-color: #337ab7;
} */

/* .subcategory-posts .post-list-item a {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
} */

/* .subcategory-posts .post-list-item a:hover {
  color: #337ab7;
} */