.admin-table.section-manage {
  table-layout: fixed !important;
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  position: relative;
  min-width: 100%;
  width: auto;
}

.admin-table.section-manage tr {
  height: 75px !important;
  line-height: 75px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

.admin-table.section-manage th,
.admin-table.section-manage td {
  height: 75px !important;
  line-height: 75px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  outline: none !important;
  white-space: nowrap;
}

.admin-table.section-manage th:first-child,
.admin-table.section-manage td:first-child {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}

.admin-table.section-manage th:nth-child(2),
.admin-table.section-manage td:nth-child(2) {
  width: 80px;
  min-width: 80px;
}

.admin-table.section-manage th:nth-child(3),
.admin-table.section-manage td:nth-child(3) {
  width: 100px !important;
  min-width: 100px !important;
}

.admin-table.section-manage th:nth-child(4),
.admin-table.section-manage td:nth-child(4) {
  width: 300px;
  min-width: 300px;
}

.admin-table.section-manage th:nth-child(5),
.admin-table.section-manage td:nth-child(5) {
  width: 140px;
  min-width: 140px;
}

.admin-table.section-manage th:nth-child(6),
.admin-table.section-manage td:nth-child(6) {
  width: 110px;
  min-width: 110px;
}

.admin-table.section-manage th:nth-child(7),
.admin-table.section-manage td:nth-child(7) {
  width: 100px;
  min-width: 100px;
}

.admin-table.section-manage th:nth-child(8),
.admin-table.section-manage td:nth-child(8) {
  width: 160px;
  min-width: 160px;
}

.admin-table.section-manage th:nth-child(9),
.admin-table.section-manage td:nth-child(9) {
  width: 130px;
  min-width: 130px;
}

.admin-table.section-manage th:nth-child(10),
.admin-table.section-manage td:nth-child(10) {
  width: 130px;
  min-width: 130px;
}

.admin-table.section-manage th:last-child,
.admin-table.section-manage td:last-child {
  width: 190px;
}

.admin-table.section-manage td:nth-child(2) {
  vertical-align: middle !important;
  display: table-cell;
}

.admin-table.section-manage td:nth-child(2) img {
  vertical-align: middle !important;
  max-height: 50px !important;
  max-width: 100px !important;
  display: inline-block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.admin-table.section-manage th.fixed-action-column,
.admin-table.section-manage td.fixed-action-column {
  position: sticky;
  right: 0;
  background-color: #fff;
  z-index: 10;
  min-width: 150px;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  text-align: right;
}

.admin-table.section-manage th.fixed-action-column {
  z-index: 11;
  background-color: #f8f9fa;
}

.admin-table.section-manage td:nth-child(3) img,
.admin-table.section-manage td:nth-child(3) .no-thumbnail {
  vertical-align: middle;
  display: block;
}

.admin-table.section-manage td {
  vertical-align: middle !important;
}

.posts-per-page-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") !important;
  width: 85px !important;
  min-width: 85px !important;
  max-width: 85px !important;
  height: 36px !important;
  font-size: 14px !important;
  padding: 4px 10px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.posts-per-page-select:focus {
  border-color: #ddd !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") !important;
}

.category-filter-select {
  width: 145px !important;
  min-width: 145px !important;
  max-width: 145px !important;
  height: 36px !important;
  font-size: 14px !important;
  padding: 4px 10px !important;
  padding-right: 32px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  margin-right: 5px !important;
  margin-left: -5px !important;
  appearance: none !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
  background-color: #fff !important;
  cursor: pointer !important;
}



.admin-table.section-manage td:nth-child(3) select {
  min-width: 100px !important;
}

.admin-table.section-manage td:nth-child(5) select {
  min-width: 80px !important;
  font-family: inherit !important;
  color: #333 !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  transition: none !important;
}

.admin-table.section-manage td:nth-child(6) select {
  width: 70px !important;
  min-width: 70px !important;
}

.admin-table.section-manage td:nth-child(3) select:hover,
.admin-table.section-manage td:nth-child(5) select:hover,
.admin-table.section-manage td:nth-child(6) select:hover {
  border-color: #ddd !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.admin-table.section-manage td:nth-child(3) select:focus,
.admin-table.section-manage td:nth-child(5) select:focus,
.admin-table.section-manage td:nth-child(6) select:focus {
  outline: none !important;
  border-color: #ddd !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.admin-table.section-manage td .theme-switch {
  vertical-align: middle !important;
  display: inline-block !important;
  margin: 0 !important;
  position: relative !important;
  top: 1px !important;
  margin-right: 10px !important;
}

.admin-table.section-manage td input[type="checkbox"],
.admin-table.section-manage td .switch {
  vertical-align: middle !important;
  margin: 0 5px 0 0 !important;
  display: inline-block !important;
}

.admin-table-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.admin-table-scroll::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar-container {
  position: relative;
  width: 100%;
  margin-top: -7px;
  display: flex;
  justify-content: center;
}

.custom-scrollbar-track {
  width: 400px;
  height: 11px;
  background: #f8fafc;
  border-radius: 12px;
  position: relative;
}

.custom-scrollbar-thumb {
  width: 150px;
  height: 11px;
  background: #e2e8f0;
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.dragging {
  background: var(--primary-color, #4ade80);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
}

.btn-success:hover:not(:disabled) {
  background-color: #138496;
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}



.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.article-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
}

.article-custom-dropdown {
  width: 360px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0px;
}

.article-select-btn {
  width: 100%;
  padding: 8px 32px 8px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f8fafc;
  color: black;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath fill=%22none%22 stroke=%22%23666%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%221.5%22 d=%22M3 6l5 5 5-5%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  height: 34px;
  box-sizing: border-box;
}

.article-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0px;
  width: 100%;
  max-height: 500px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 5px;
  background-color: white;
  overflow-y: auto;
  z-index: 1000;
  width: 185px;
}

.article-search-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid var(--primary-color);
}

.article-dropdown-search {
  width: calc(100% - 30px);
  padding: 8px;
  border: none;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.article-search-icon {
  position: absolute;
  right: 8px;
  width: 16px;
  height: 16px;
  pointer-events: auto;
  color: #999;
  cursor: pointer;
}

.article-search-icon:hover {
  color: var(--primary-color);
}

.article-dropdown-page-info {
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #ddd;
}

.article-dropdown-option {
  padding: 0px 10px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.article-dropdown-option:hover,
.article-dropdown-option.selected {
  background-color: var(--primary-color);
  color: white;
}

#article-dropdown {
  display: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
}

.article-dropdown-header {
  display: flex;
  align-items: center;
  position: relative;
  background: #F8FAFC;
}

.page-input {
  width: 60px;
  height: 34px;
  margin-left: 10px;
  padding: 0 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  outline: none;
  -webkit-appearance: textfield;
  background: #f8fafc;
}

.page-input::-webkit-inner-spin-button,
.page-input::-webkit-outer-spin-button {
  opacity: 1;
  height: auto;
}

.page-info {
  margin: 0 10px;
  font-size: 14px;
  color: #666;
  vertical-align: middle;
}











@media (max-width: 768px) {


  admin-table.section-manage th:first-child,
  .admin-table.section-manage td:first-child {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
  }


  .article-dropdown-options {

    left: 10px;

    width: 195px;
  }





  .article-dropdown-header {
    padding: 0px;
    margin-top: 10px;
  }

  .admin-table.section-manage {
    font-size: 14px !important;
    min-width: 600px !important;
    width: auto !important;
    display: table !important;
  }

  .admin-table.section-manage thead {
    display: table-header-group !important;
  }

  .admin-table.section-manage tbody {
    display: table-row-group !important;
  }

  .admin-table.section-manage tr {
    display: table-row !important;
  }

  .admin-table.section-manage th,
  .admin-table.section-manage td {
    display: table-cell !important;
    padding: 6px 4px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    float: none !important;
  }

  .admin-table.section-manage th:nth-child(3),
  .admin-table.section-manage td:nth-child(3),
  .admin-table.section-manage th:nth-child(7),
  .admin-table.section-manage td:nth-child(7),
  .admin-table.section-manage th:nth-child(9),
  .admin-table.section-manage td:nth-child(9) {
    display: none !important;
  }

  .admin-table.section-manage th:nth-child(4),
  .admin-table.section-manage td:nth-child(4),
  .admin-table.section-manage th:nth-child(5),
  .admin-table.section-manage td:nth-child(5),
  .admin-table.section-manage th:nth-child(6),
  .admin-table.section-manage td:nth-child(6),
  .admin-table.section-manage th:nth-child(8),
  .admin-table.section-manage td:nth-child(8) {
    display: table-cell !important;
    min-width: 100px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .admin-table.section-manage th:nth-child(4),
  .admin-table.section-manage td:nth-child(4) {
    min-width: 150px !important;
    max-width: 200px !important;
  }

  .admin-table.section-manage th:nth-child(8),
  .admin-table.section-manage td:nth-child(8) {
    min-width: 120px !important;
    max-width: 120px !important;
  }

  .admin-table.section-manage td {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .admin-table-wrapper,
  .admin-table-scroll {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100vw !important;
    display: block !important;
  }

  .admin-table-wrapper::-webkit-scrollbar,
  .admin-table-scroll::-webkit-scrollbar {
    height: 10px !important;
    width: 10px !important;
  }

  .admin-table-wrapper::-webkit-scrollbar-track,
  .admin-table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 5px !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1) !important;
  }

  .admin-table-wrapper::-webkit-scrollbar-thumb,
  .admin-table-scroll::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 5px !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
  }

  .admin-table-wrapper::-webkit-scrollbar-thumb:hover,
  .admin-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
  }

  .page-input {
    display: none !important;
  }

  .custom-dropdown {
    width: 200px !important;
  }



  .admin-table.section-manage th:nth-child(2),
  .admin-table.section-manage td:nth-child(2) {
    width: 70px !important;
    min-width: 70px !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-table.section-manage th:last-child,
  .admin-table.section-manage td:last-child {
    width: 100px !important;
    min-width: 100px !important;
    padding: 8px 5px !important;
  }

  .admin-table.section-manage th.fixed-action-column,
  .admin-table.section-manage td.fixed-action-column {

    box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
  }

  .admin-table.section-manage th:first-child,
  .admin-table.section-manage td:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }
}

/* AI智能写作模态弹窗样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-visible {
  display: flex !important;
  opacity: 1;
}

.modal-visible .modal-backdrop {
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 9999;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-visible .modal-content {
  transform: scale(1);
}



.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: #dbdbdb;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  color: transparent;
  font-size: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: all 0.3s ease;
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
  background: #ff5252;
  transform: rotate(90deg);
}

.modal-close:hover::before,
.modal-close:hover::after {
  width: 14px;
}

.modal-actions {
  padding: 16px 5px;
  /* border-top: 1px solid #e1e8ed; */
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  /* background: #f8f9fa; */
  border-radius: 0 0 8px 8px;
}

#imageUrlInsertModal .modal-actions {
  padding: 16px 20px !important;
}

#imageUrlInsertModal .modal-body {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* AI智能写作模态弹窗专用样式 */
.ai-form-group {
  margin-bottom: 20px;
}

.ai-form-group label {
  display: block;

  font-size: 14px;
  letter-spacing: 0.5px;
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.ai-form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: #fafbfc;
  color: #2c3e50;
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.ai-form-control:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ai-form-control::placeholder {
  color: #95a5a6;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.ai-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 120px;
}

.ai-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ai-btn-secondary {
  background: #6B7280;
  color: white;
}

.ai-btn-secondary:hover:not(:disabled) {
  background: #4B5563;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.ai-btn-success {
  background: #10B981;
  color: white;
}

.ai-btn-success:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-btn-primary {
  background: #3B82F6;
  color: white;
}

.ai-btn-primary:hover:not(:disabled) {
  background: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ai-loading {
  display: none;
  text-align: center;
  padding: 30px;
}

.ai-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #ecf0f1;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.ai-loading p {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 400;
}

.ai-progress {
  display: none;
  margin-top: 20px;
}

.ai-progress .progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-progress .progress-header span {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

.ai-progress .progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}

.ai-progress .progress-fill {
  width: 0%;
  height: 100%;
  background: #3498db;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ai-result {
  display: none;
  margin-top: 24px;
}

.ai-result .result-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-result .result-col {
  flex: 1;
}

.ai-result textarea {
  min-height: 120px;
}

/* 文章统计数字徽章 */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #9333ea 100%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}
