@import url("./bootstrap-icons.min.css");
@import url("./bootstrap.min.css");
@import url("./tom-select.css");
@import url("./bootstrap.min.css.map");
@import url("./mobile.css");
@import url("./desktop.css");

:root {
  --primary: #2f6df6;
  --secondary: #6b7280;
  --bg: #f4f6f9;
  --card: #ffffff;
  --radius: 12px;
}
html {
  transition: all 0.25s ease-in-out;
}

/* Search matches clean style */


.form-search .form-control:focus {
  box-shadow: none;
}
.fixed-top {
  background-color: white;
}
/* Drawer styles */
#drawerMenu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background-color: #1e1e1e;
  z-index: 1050;
  transition: left 0.3s;
  overflow-y: auto;
  padding: 1rem;
}

#drawerMenu.active {
  left: 0;
}

#drawerMenu input {
  background-color: #2c2c2c;
  color: #fff;
  border: none;
}

#drawerMenu input::placeholder {
  color: #aaa;
}

#drawerMenu .close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  position: absolute;
  top: 10px;
  right: 10px;
}

#drawerMenu ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

#drawerMenu li {
  padding: 10px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

#drawerMenu li:hover {
  background-color: #333;
}

/* Overlay when drawer is open */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

#overlay.active {
  display: block;
}

.flex-border > div {
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}
.text-xl {
  font-size: 1.25rem;
}
.bg-grey {
  background: #333333;
}
.bg-none {
  background-color: transparent !important;
  color: whitesmoke !important;
}
/* ---------------------------------- */
/* Custom Font Size Utilities (f10-f22) */
/* ---------------------------------- */
.f10 {
  font-size: 10px !important;
}
.f11 {
  font-size: 11px !important;
}
.f12 {
  font-size: 12px !important;
}
.f13 {
  font-size: 13px !important;
}
.f14 {
  font-size: 14px !important;
}
.f15 {
  font-size: 15px !important;
}
.f16 {
  font-size: 16px !important;
}
.f17 {
  font-size: 17px !important;
}
.f18 {
  font-size: 18px !important;
}
.f19 {
  font-size: 19px !important;
}
.f20 {
  font-size: 20px !important;
}
.f21 {
  font-size: 21px !important;
}
.f22 {
  font-size: 22px !important;
}
/* Bootstrap Utility Overrides */
[data-bs-theme="dark"] {
  --bs-body-bg: #121212;
  --bs-body-color: #e4e6eb;
}

/* Containers / Cards / Custom boxes */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas {
  background-color: #1e1e1e;
  color: #fff;
}

/* Text utilities you commonly use */
[data-bs-theme="dark"] .text-dark {
  color: #fff !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #b0b3b8 !important;
}

/* Background utilities */
[data-bs-theme="dark"] .bg-light {
  background-color: #1e1e1e !important;
}

[data-bs-theme="dark"] .bg-white {
  background-color: #181818 !important;
  color: #fff !important;
}

/* Borders */
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
  border-color: #333 !important;
}

/* Inputs / Selects */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #2b2b2b;
  color: #fff;
  border-color: #444;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #888;
}

/* Search modal styles */
.scrollable-modal {
  max-height: 60vh;
  overflow-y: auto;
}

.badge-keyword {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin: 0.25rem;
  background-color: #f0f0f0;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.badge-keyword:hover {
  background-color: #e0e0e0;
  color: #0d6efd;
}

.rank-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background-color: #ff6b6b;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 0.5rem;
}

.hover-default:hover {
  color: #333;
}
.a-tag {
  color: #333;
  text-decoration: none;
}
.a-tag:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.pagination-responsive {
  flex-wrap: wrap;
  gap: 4px;
}

/* Default */
.pagination-responsive .page-link {
  padding: 0.5rem 0.75rem;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 576px) {
  .pagination-responsive {
    justify-content: center !important;
  }
  .pagination-responsive .page-link {
    padding: 0.35rem 0.5rem;
    font-size: 12px;
    min-width: 32px;
    text-align: center;
  }

  .pagination-responsive .ellipsis .page-link {
    padding: 0.35rem 0.4rem;
    pointer-events: none;
    background: transparent;
    border: none;
  }

  /* Compact prev / next */
  .pagination-responsive .prev .page-link,
  .pagination-responsive .next .page-link {
    min-width: 64px;
  }
}
.wrap {
  padding-bottom: 10px;
}

.side-card {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.side-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.side-title {
  font-weight: 900;
}

.rank-list {
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}

.rank-list a {
  text-decoration: none;
  color: #111827;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.rank-list a:hover {
  color: #0d6efd;
}

.side-avatar {
  text-decoration: none;
  display: block;
  text-align: center;
}

.side-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #eef0f3;
}

.side-avatar-name {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-img {
  width: 100%;
  height: auto;
}


.diagonal-rounded {
  border-radius: 0.75rem 0 0.75rem 0;
  /* top-left | top-right | bottom-right | bottom-left */
}
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toast通知样式优化 - 符合系统主题 */
.toast-container {
  max-width: 350px;
}

.toast {
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}

.toast-body {
  display: flex !important;
  align-items: center !important;
  padding: 0.875rem 1rem !important;
  color: #1f2937 !important;
}

.toast-body i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.5;
  color: #1f2937 !important;
}

/* 成功提示 - 使用系统主题蓝色 */
.toast-success-custom {
  background-color: #ffffff !important;
  border-left: 3px solid #2f6df6 !important;
  border-right: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.toast-success-custom .toast-body {
  color: #1f2937 !important;
  background-color: transparent !important;
}

.toast-success-custom.text-white {
  color: #1f2937 !important;
}

.toast-success-custom.bg-success {
  background-color: #ffffff !important;
}

/* 错误提示 - 柔和的红色 */
.toast-error-custom {
  background-color: #ffffff !important;
  border-left: 3px solid #dc3545 !important;
  border-right: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.toast-error-custom .toast-body {
  color: #1f2937 !important;
  background-color: transparent !important;
}

.toast-error-custom.text-white {
  color: #1f2937 !important;
}

.toast-error-custom.bg-danger {
  background-color: #ffffff !important;
}

/* 警告提示 */
.toast-warning-custom {
  background-color: #ffffff !important;
  border-left: 3px solid #ffc107 !important;
  border-right: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.toast-warning-custom .toast-body {
  color: #1f2937 !important;
  background-color: transparent !important;
}

.toast-warning-custom.text-white {
  color: #1f2937 !important;
}

.toast-warning-custom.bg-warning {
  background-color: #ffffff !important;
}

/* 信息提示 - 使用系统主题蓝色 */
.toast-info-custom {
  background-color: #ffffff !important;
  border-left: 3px solid #2f6df6 !important;
  border-right: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.toast-info-custom .toast-body {
  color: #1f2937 !important;
  background-color: transparent !important;
}

.toast-info-custom.text-white {
  color: #1f2937 !important;
}

.toast-info-custom.bg-info {
  background-color: #ffffff !important;
}

/* 关闭按钮样式 */
.toast .btn-close {
  opacity: 0.5 !important;
  filter: invert(0) !important;
}

.toast .btn-close:hover {
  opacity: 0.75 !important;
}

@media (max-width: 576px) {
  .toast-container {
    max-width: calc(100% - 1rem);
    left: 0.5rem;
    right: 0.5rem;
  }
  
  .toast {
    font-size: 13px;
  }
  
  .toast-body {
    padding: 0.75rem;
  }
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-card {
  position: relative;
  border-radius: 12px;
  background-color: #F5F6FA;

}
.feed-media{
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}
.chip {
  background: #e8f0ff;
  color: #2563eb;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* make anchors behave like chips */
a.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;

  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

a.chip:hover {
  background: #dbe8ff;

  transform: translateY(-1px);
}

a.chip:active {
  transform: translateY(0);
}
