/* ===== UI CSS Modules Bundle (auto-generated) =====
   Combined from: base.css, display.css, feedback.css, forms.css, layout.css, navigation.css, tabs-browser.css, variables.css
   Order preserved as in index.html.
   Edit individual module files AND re-run bundle generation when updating.
   ===== */

/* ===== base.css ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: var(--transition);
}

*,
*::before,
*::after {
  font-family: inherit;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.emoji-text {
  font-family: "Noto Color Emoji", system-ui, -apple-system, sans-serif;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 300;
}

.text-sm {
  font-size: 0.85em;
}

.text-start {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

.text-wrap {
  white-space: normal;
}

.text-nowrap {
  white-space: nowrap;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.list-unstyled {
  list-style: none;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

hr {
  border: none;
  height: 1px;
  background: var(--border-line);
  margin: 16px 0;
}

a {
  color: var(--main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  margin: 24px 0 12px;
  font-weight: 600;
}

p {
  margin: 12px 0;
}

small {
  font-size: 0.875rem;
}

mark {
  background-color: var(--warning);
  padding: 0 4px;
  border-radius: 2px;
}

code {
  font-family: monospace;
  background: var(--block-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: var(--block-bg);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
}

pre code {
  background: transparent;
  padding: 0;
}

kbd {
  background: var(--block-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
}

blockquote {
  border-left: 4px solid var(--main);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-sub);
  font-style: italic;
}

.adaptive-text {
  color: #fff;
  background: inherit;
  mix-blend-mode: difference;
}

.text-auto-contrast {
  display: inline-block;
  color: #fff;
  background: inherit;
  mix-blend-mode: difference;
  text-shadow: 0 0 2px rgba(0,0,0,0.3), 0 0 6px rgba(255,255,255,0.2);
}

.highlight {
  padding: 0.1em 0.3em;
  border-radius: 4px 8px 8px 4px;
  transform: rotate(-0.5deg);
  display: inline-block;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

.markYellow {
  background: linear-gradient(120deg, rgba(255, 238, 0, 0.7) 0%, rgba(255, 210, 0, 0.5) 30%, rgba(255, 238, 0, 0.8) 60%, rgba(255, 200, 0, 0.4) 85%, rgba(255, 238, 0, 0.6) 100%);
}

.markGreen {
  background: linear-gradient(120deg, rgba(0, 255, 0, 0.7) 0%, rgba(0, 210, 0, 0.5) 30%, rgba(0, 255, 0, 0.8) 60%, rgba(0, 200, 0, 0.4) 85%, rgba(0, 255, 0, 0.6) 100%);
}

.markRed {
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.7) 0%, rgba(210, 0, 0, 0.5) 30%, rgba(255, 0, 0, 0.8) 60%, rgba(200, 0, 0, 0.4) 85%, rgba(255, 0, 0, 0.6) 100%);
}

.markBlue {
  background: linear-gradient(120deg, rgba(0, 0, 255, 0.7) 0%, rgba(0, 0, 210, 0.5) 30%, rgba(0, 0, 255, 0.8) 60%, rgba(0, 0, 200, 0.4) 85%, rgba(0, 0, 255, 0.6) 100%);
}

.markOrange {
  background: linear-gradient(120deg, rgba(255, 165, 0, 0.7) 0%, rgba(230, 140, 0, 0.5) 30%, rgba(255, 165, 0, 0.8) 60%, rgba(210, 120, 0, 0.4) 85%, rgba(255, 165, 0, 0.6) 100%);
}

.markPurple {
  background: linear-gradient(120deg, rgba(180, 0, 255, 0.7) 0%, rgba(150, 0, 210, 0.5) 30%, rgba(180, 0, 255, 0.8) 60%, rgba(130, 0, 200, 0.4) 85%, rgba(180, 0, 255, 0.6) 100%);
}

.highlight:hover {
  filter: brightness(0.95) saturate(1.1);
  transform: rotate(-0.3deg) scale(1.02);
}

.display-1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.display-2 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.2;
}

.display-3 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.display-4 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
}

abbr {
  border-bottom: 1px dashed var(--border);
  cursor: help;
}

.initialism {
  font-size: 0.85em;
  text-transform: uppercase;
}

dl {
  margin: 16px 0;
}

dt {
  font-weight: 600;
  margin-bottom: 4px;
}

dd {
  margin-left: 20px;
  margin-bottom: 8px;
  color: var(--text-sub);
}

.more {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-sub);
}

.text-muted {
  font-size: 0.85em;
  color: var(--text-sub);
}

.text-justify {
  text-align: justify;
}


/* ===== display.css ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

th,
td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

th {
  background: var(--block-bg);
  font-weight: 600;
  font-size: 0.9em;
}

tbody tr:hover td {
  background: rgba(0, 122, 255, 0.05);
}

tbody tr:nth-child(even) td {
  background: var(--bg);
}

.list {
  list-style: none;
  margin: 12px 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.list-item:hover {
  background: var(--block-bg);
}

.list-item:last-child {
  border-bottom: none;
}

.list-group {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.list-group-item {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--card-bg);
}

.list-group-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.list-group-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-bottom: 1px solid var(--border);
}

.list-group-item:hover {
  background: var(--block-bg);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--block-bg);
  font-size: 12px;
  margin: 4px;
}

.tag-success {
  background: rgba(0, 180, 42, 0.1);
  color: var(--success);
}

.tag-warning {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
}

.tag-danger {
  background: rgba(245, 63, 63, 0.1);
  color: var(--danger);
}

.tag-info {
  background: rgba(0, 122, 255, 0.1);
  color: var(--main);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
  margin-left: 4px;
}

.badge-success {
  background: var(--success);
}

.badge-warning {
  background: var(--warning);
}

.badge-danger {
  background: var(--danger);
}

.progress {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--main);
  border-radius: var(--radius-sm);
  width: 60%;
  transition: width 0.5s ease;
}

.progress-bar-success {
  background: var(--success);
}

.progress-bar-warning {
  background: var(--warning);
}

.progress-bar-danger {
  background: var(--danger);
}

.tree {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.tree-item {
  padding: 6px 0;
  cursor: pointer;
  transition: var(--transition);
}

.tree-item:hover {
  color: var(--main);
}

.tree-children {
  margin-left: 20px;
  list-style: none;
  padding: 0;
}

.tree-toggle {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 14px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-right: 6px;
  font-size: 10px;
  cursor: pointer;
}

.tree-toggle:hover {
  background: var(--block-bg);
}

.divider {
  height: 1px;
  background: var(--border-line);
  margin: 16px 0;
}

.hr-dashed {
  background: none;
  border-top: 1px dashed var(--border);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-placeholder);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.media {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.media-object {
  flex-shrink: 0;
}

.media-body {
  flex: 1;
}

.media-heading {
  font-weight: 600;
  margin-bottom: 4px;
}

.media-text {
  color: var(--text-sub);
  font-size: 0.9em;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 16px auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.carousel-item img {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-md);
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.carousel-caption h4 {
  margin: 0 0 8px;
}

.carousel-caption p {
  margin: 0;
  font-size: 0.9em;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background: #fff;
}

@media (max-width: 768px) {
  table {
    font-size: 0.85em;
  }

  th,
  td {
    padding: 8px 10px;
  }

  .list-item {
    padding: 10px 12px;
  }
}


/* ===== feedback.css ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: modalFadeIn 0.2s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  min-width: auto;
  color: var(--text-sub);
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 大尺寸模态框变体 —— 设置/添加/编辑应用共用 */
.modal-content-lg {
  width: 600px;
  max-width: 90%;
  height: 80%;
  display: flex;
  flex-direction: column;
}

.modal-content-lg .modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 主题选择网格 —— 设置模态框主题按钮排版 */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.theme-grid button {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.theme-grid button:hover {
  border-color: var(--main);
  color: var(--main);
  transform: translateY(-1px);
}

/* 背景图片 tab 的按钮垂直排列 */
#background > button {
  display: block;
  margin-bottom: 6px;
  width: 100%;
  text-align: left;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.loading-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-overlay.active {
  display: flex;
}

.loading-overlay-content {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loading-overlay-content .loading {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  z-index: 1001;
  font-size: 14px;
  animation: toastFadeIn 0.2s ease;
}

.toast-success {
  background: rgba(0, 180, 42, 0.9);
}

.toast-warning {
  background: rgba(255, 193, 7, 0.9);
  color: #333;
}

.toast-danger {
  background: rgba(245, 63, 63, 0.9);
}

.toast-info {
  background: rgba(0, 122, 255, 0.9);
}

.toast-top {
  bottom: auto;
  top: 20px;
}

.toast-left {
  left: 20px;
  transform: translateX(0);
}

.toast-right {
  left: auto;
  right: 20px;
  transform: translateX(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.popconfirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}

.popconfirm.active {
  display: flex;
}

.popconfirm-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 380px;
  box-shadow: var(--shadow);
  animation: modalFadeIn 0.2s ease;
}

.popconfirm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.popconfirm-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 63, 63, 0.1);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.popconfirm-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.popconfirm-body {
  margin-bottom: 20px;
  color: var(--text-sub);
}

.popconfirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.popover {
  position: relative;
  display: inline-block;
}

.popover-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 1001;
  margin-top: 8px;
}

.popover-content::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 16px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--border) transparent;
}

.popover-content::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 17px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--card-bg) transparent;
}

.popover.active .popover-content {
  display: block;
}

.popover-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.popover-body {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.popover.right .popover-content {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 8px;
}

.popover.right .popover-content::before {
  bottom: auto;
  left: auto;
  right: 100%;
  top: 16px;
  margin-left: 0;
  border-color: transparent var(--border) transparent transparent;
}

.popover.right .popover-content::after {
  bottom: auto;
  left: auto;
  right: 100%;
  top: 17px;
  margin-left: 0;
  border-color: transparent var(--card-bg) transparent transparent;
}

.popover.left .popover-content {
  top: 0;
  left: auto;
  right: 100%;
  margin-top: 0;
  margin-right: 8px;
}

.popover.left .popover-content::before {
  bottom: auto;
  left: 100%;
  top: 16px;
  margin-left: 0;
  border-color: transparent transparent transparent var(--border);
}

.popover.left .popover-content::after {
  bottom: auto;
  left: 100%;
  top: 17px;
  margin-left: 0;
  border-color: transparent transparent transparent var(--card-bg);
}

.popover.top .popover-content {
  top: auto;
  bottom: 100%;
  left: 0;
  margin-top: 0;
  margin-bottom: 8px;
}

.popover.top .popover-content::before {
  bottom: auto;
  top: 100%;
  left: 16px;
  border-color: transparent transparent var(--border) transparent;
}

.popover.top .popover-content::after {
  bottom: auto;
  top: 100%;
  left: 17px;
  border-color: transparent transparent var(--card-bg) transparent;
}

@media (max-width: 480px) {
  .modal-content,
  .popconfirm-content {
    width: 95%;
    padding: 20px;
  }

  .toast {
    width: 90%;
    text-align: center;
  }
}


/* ===== forms.css ===== */
.btn-group,
.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

button,
.btn {
  padding: 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  min-width: 80px;
  text-align: center;
  vertical-align: middle;
}

button:hover,
.btn:hover {
  background: var(--btn-hover);
}

button:active,
.btn:active {
  transform: scale(0.98);
}

.btn-main {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
}

.btn-main:hover {
  opacity: 0.9;
  background: var(--main);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-success:hover {
  opacity: 0.9;
  background: var(--success);
}

.btn-warning {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning);
}

.btn-warning:hover {
  opacity: 0.9;
  background: var(--warning);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  opacity: 0.9;
  background: var(--danger);
}

.btn-disabled,
button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin-btn 1s linear infinite;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
}

input,
select,
textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  margin: 6px 0;
  width: 100%;
  max-width: 400px;
  font-size: 14px;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-placeholder);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

label {
  margin-right: 10px;
}

.form-item {
  margin: 16px 0;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 6px 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 24px;
  transition: var(--transition);
  cursor: pointer;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

input:checked+.slider {
  background: var(--main);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.slider-wrapper {
  width: 100%;
  max-width: 300px;
  height: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.slider-input {
  -webkit-appearance: none;
  width: calc(100% + 16px);
  height: 6px;
  background: linear-gradient(to right, var(--main) 0%, var(--main) var(--progress, 50%), var(--border) var(--progress, 50%), var(--border) 100%);
  border-radius: 3px;
  outline: none;
  margin: 0 -8px;
  padding: 0;
  transition: background .15s ease;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--main);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform .15s ease, box-shadow .15s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-input::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.slider-input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--main);
  outline-offset: 4px;
}

.slider-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--main);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform .15s ease, box-shadow .15s ease;
}

.slider-input::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-input::-moz-range-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 8px 0;
  height: 24px;
}

.radio-item input[type="radio"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  position: relative;
  transition: border-color .2s ease, background .2s ease;
  margin: 0;
  cursor: pointer;
}

.radio-item input[type="radio"]:hover {
  border-color: var(--main);
}

.radio-item input[type="radio"]:checked {
  border-color: var(--main);
  background: var(--main);
}

.radio-item input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--check-color);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.radio-item input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.radio-item label {
  cursor: pointer;
  user-select: none;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 8px 0;
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  position: relative;
  transition: border-color .2s ease, background .2s ease, border-radius .2s ease;
  margin: 0;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"]:hover {
  border-color: var(--main);
  border-radius: 50%;
}

.checkbox-item input[type="checkbox"]:checked {
  border-color: var(--main);
  background: var(--main);
}

.checkbox-item input[type="checkbox"]::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--check-color);
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.checkbox-item input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.checkbox-item label {
  cursor: pointer;
  user-select: none;
}

.rate {
  color: var(--warning);
  font-size: 20px;
}

.rate input {
  display: none;
}

.rate label {
  cursor: pointer;
  margin: 0 2px;
}

.rate label:hover,
.rate label:hover~label {
  color: var(--warning);
}

.rate input:checked~label {
  color: var(--warning);
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.captcha-box {
  width: 120px;
  height: 44px;
  background: var(--block-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
  user-select: none;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.captcha-box:hover {
  border-color: var(--main);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.2);
}

.captcha-input {
  max-width: 150px !important;
}

.captcha-refresh {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: auto;
}

.captcha-refresh:hover {
  color: var(--main);
  background: rgba(0, 122, 255, 0.1);
}

.captcha-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1) !important;
}

.captcha-success {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1) !important;
}

@keyframes spin-btn {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}


/* ===== layout.css ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}

.col {
  flex: 1;
  min-width: 200px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 12px 0;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 12px 0;
  background: var(--card-bg);
}

.card-header {
  margin: -20px -20px 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--block-bg);
  font-weight: 600;
}

.card-footer {
  margin: 16px -20px -20px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--block-bg);
}

.panel-header {
  margin: -20px -20px 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.panel-footer {
  margin: 16px -20px -20px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.col-1 { flex: 0 0 calc(100% / 12 * 1); }
.col-2 { flex: 0 0 calc(100% / 12 * 2); }
.col-3 { flex: 0 0 calc(100% / 12 * 3); }
.col-4 { flex: 0 0 calc(100% / 12 * 4); }
.col-5 { flex: 0 0 calc(100% / 12 * 5); }
.col-6 { flex: 0 0 calc(100% / 12 * 6); }
.col-7 { flex: 0 0 calc(100% / 12 * 7); }
.col-8 { flex: 0 0 calc(100% / 12 * 8); }
.col-9 { flex: 0 0 calc(100% / 12 * 9); }
.col-10 { flex: 0 0 calc(100% / 12 * 10); }
.col-11 { flex: 0 0 calc(100% / 12 * 11); }
.col-12 { flex: 0 0 100%; }

.jumbotron {
  padding: 60px 20px;
  background: var(--block-bg);
  border-radius: var(--radius-lg);
  margin: 16px 0;
}

.jumbotron h1,
.jumbotron h2 {
  margin-top: 0;
}

.jumbotron p {
  font-size: 1.125rem;
  color: var(--text-sub);
}

.jumbotron .btn-group {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 100%;
    min-width: auto;
  }
  
  .jumbotron {
    padding: 30px 16px;
  }
}


/* ===== navigation.css ===== */
.navbar {
  background: var(--card-bg);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  user-select: text;
  height: 60px;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--main);
}

.navbar-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav a,
.navbar-nav button {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.navbar-nav a:hover,
.navbar-nav button:hover {
  background: var(--block-bg);
  text-decoration: none;
}

.navbar-nav a.active,
.navbar-nav button.active {
  color: var(--main);
  background: rgba(0, 122, 255, 0.1);
}

.sidebar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 240px;
  padding: 20px;
  box-shadow: var(--shadow);
  height: calc(100vh - 80px);
  position: fixed;
  left: 20px;
  top: 80px;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-bottom: 4px;
}

.sidebar-menu li:hover {
  color: var(--main);
  background: var(--block-bg);
}

.sidebar-menu li.active {
  color: var(--main);
  background: rgba(0, 122, 255, 0.1);
}

.sidebar-menu li ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 16px;
}

.sidebar-menu li ul li {
  padding: 8px 12px;
  font-size: 0.9em;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 12px 0;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-right: 4px;
}

.tab:hover {
  color: var(--main);
}

.tab.active {
  border-color: var(--main);
  color: var(--main);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  list-style: none;
  padding: 0;
}

.breadcrumb-item {
  color: var(--text-sub);
}

.breadcrumb-item::after {
  content: "/";
  margin-left: 8px;
  color: var(--border);
}

.breadcrumb-item:last-child::after {
  content: "";
}

.breadcrumb-item:last-child {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--main);
}

.pagination {
  display: flex;
  gap: 4px;
  margin: 16px 0;
  list-style: none;
  padding: 0;
}

.page-item {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.page-item:hover {
  border-color: var(--main);
  color: var(--main);
}

.page-item.active {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
}

.page-item.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.menu {
  list-style: none;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 8px 0;
  width: 180px;
  margin: 12px 0;
}

.menu-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.menu-item:hover {
  background: var(--block-bg);
}

.menu-item.active {
  background: rgba(0, 122, 255, 0.1);
  color: var(--main);
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 160px;
  padding: 8px 0;
  margin: 2px 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.collapse {
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  max-height: 0;
}

.collapse.show {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.collapse-header {
  padding: 10px 12px;
  cursor: pointer;
  background: var(--block-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapse-header:hover {
  background: rgba(0, 122, 255, 0.1);
}

.collapse-body {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: -4px;
}

.nav-pills {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.nav-pill {
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  background: var(--block-bg);
  transition: var(--transition);
}

.nav-pill:hover {
  background: rgba(0, 122, 255, 0.1);
}

.nav-pill.active {
  background: var(--main);
  color: #fff;
}

.nav-vertical {
  flex-direction: column;
}

.nav-horizontal {
  flex-direction: row;
}

.pill-content {
  display: none;
}

.pill-content.active {
  display: block;
}

@media (max-width: 1024px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-nav {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  .navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .sidebar {
    width: 100%;
    left: 0;
    right: 0;
    top: 60px;
    border-radius: 0;
    height: calc(100vh - 60px);
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 12px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav {
    padding: 10px 12px;
  }
}


/* ===== tabs-browser.css ===== */
.tabs-browser {
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-browser::-webkit-scrollbar {
  display: none;
}

.tab-browser {
  flex: 0 0 auto;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  min-width: 80px;
}

.tab-browser:hover {
  color: var(--text);
  background-color: var(--block-bg);
}

.tab-browser.active {
  color: var(--main);
  border-bottom-color: var(--main);
  background-color: var(--card-bg);
}

.tab-browser.close-btn {
  margin-left: 8px;
  padding: 0;
  width: 16px;
  height: 16px;
  font-size: 12px;
  line-height: 14px;
  color: var(--text-placeholder);
  border-radius: 50%;
}

.tab-browser.close-btn:hover {
  color: var(--danger);
  background: rgba(245, 63, 63, 0.1);
}

.tabs-content {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px;
  background-color: var(--card-bg);
  min-height: 200px;
  max-height: 500px;
  overflow: auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tabs-browser-right {
  margin-left: auto;
  padding: 8px 12px;
  flex-shrink: 0;
}

.tabs-browser-right button {
  margin-left: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .tab-browser {
    padding: 10px 16px;
    font-size: 13px;
  }

  .tabs-content {
    padding: 16px;
    min-height: 150px;
  }
}


/* ===== variables.css ===== */
:root {
  --bg: #ffffff;
  --trbg: rgba(255, 255, 255, 0.247);
  --text: #111111;
  --text-sub: #333333;
  --text-placeholder: #999999;
  --border: #ddd;
  --border-line: #E5E5E5;
  --placeholder-bg: #CCCCCC;
  --block-bg: #F2F2F2;
  --btn-bg: #f5f5f5;
  --btn-hover: #e5e5e5;
  --main: #007aff;
  --success: #00B42A;
  --warning: #FFC107;
  --danger: #F53F3F;
  --card-bg: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --check-color: #fff;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: all 0.3s ease;
}

.theme-dark {
  --bg: #121212;
  --trbg: rgba(18, 18, 18, 0.253);
  --text: #ffffff;
  --text-sub: #cccccc;
  --text-placeholder: #666666;
  --border: #333;
  --border-line: #444;
  --placeholder-bg: #333333;
  --block-bg: #1e1e1e;
  --btn-bg: #1e1e1e;
  --btn-hover: #2d2d2d;
  --main: #007aff;
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #1e1e1e;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-darker {
  --bg: #0a0a0a;
  --trbg: rgba(10, 10, 10, 0.3);
  --text: #e0e0e0;
  --text-sub: #bbbbbb;
  --text-placeholder: #555555;
  --border: #222;
  --border-line: #333;
  --placeholder-bg: #222222;
  --block-bg: #151515;
  --btn-bg: #151515;
  --btn-hover: #252525;
  --main: #0066cc;
  --success: #2dba4e;
  --warning: #e6b800;
  --danger: #e63939;
  --card-bg: #151515;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.theme-gray {
  --bg: #f5f5f7;
  --trbg: rgba(245, 245, 247, 0.3);
  --text: #1d1d1f;
  --text-sub: #333333;
  --text-placeholder: #86868b;
  --border: #d2d2d7;
  --border-line: #e5e5ea;
  --placeholder-bg: #d2d2d7;
  --block-bg: #e5e5ea;
  --btn-bg: #e5e5ea;
  --btn-hover: #d1d1d6;
  --main: #86868b;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-red {
  --bg: #fff5f5;
  --trbg: rgba(255, 245, 245, 0.26);
  --text: #5a0000;
  --text-sub: #8a0000;
  --text-placeholder: #cc9999;
  --border: #f8b8b8;
  --border-line: #ffcccc;
  --placeholder-bg: #ffcccc;
  --block-bg: #ffd6d6;
  --btn-bg: #ffd6d6;
  --btn-hover: #ffadad;
  --main: #ff3b30;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #ffe8e8;
  --shadow: 0 2px 8px rgba(255, 59, 48, 0.1);
}

.theme-red-dark {
  --bg: #2d0a0a;
  --trbg: rgba(45, 10, 10, 0.3);
  --text: #ffcccc;
  --text-sub: #ffaaaa;
  --text-placeholder: #8a5555;
  --border: #5a2020;
  --border-line: #7a3030;
  --placeholder-bg: #5a2020;
  --block-bg: #451515;
  --btn-bg: #451515;
  --btn-hover: #602020;
  --main: #ff453a;
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #3d1010;
  --shadow: 0 2px 8px rgba(255, 69, 58, 0.2);
}

.theme-rose {
  --bg: #fff0f5;
  --trbg: rgba(255, 240, 245, 0.3);
  --text: #4a0020;
  --text-sub: #6a0030;
  --text-placeholder: #cc99aa;
  --border: #f8b8d0;
  --border-line: #ffccdd;
  --placeholder-bg: #ffccdd;
  --block-bg: #ffd6e8;
  --btn-bg: #ffd6e8;
  --btn-hover: #ffadcf;
  --main: #ff2d55;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff2d55;
  --card-bg: #ffe8f0;
  --shadow: 0 2px 8px rgba(255, 45, 85, 0.1);
}

.theme-orange {
  --bg: #fff5e6;
  --trbg: rgba(255, 245, 230, 0.3);
  --text: #4a2000;
  --text-sub: #6a3000;
  --text-placeholder: #ccaa77;
  --border: #f8d0b8;
  --border-line: #ffddbb;
  --placeholder-bg: #ffddbb;
  --block-bg: #ffe8cc;
  --btn-bg: #ffe8cc;
  --btn-hover: #ffd6ad;
  --main: #ff9500;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --card-bg: #fff0e0;
  --shadow: 0 2px 8px rgba(255, 149, 0, 0.1);
}

.theme-orange-dark {
  --bg: #2d1a0a;
  --trbg: rgba(45, 26, 10, 0.3);
  --text: #ffe0cc;
  --text-sub: #ffccaa;
  --text-placeholder: #8a6555;
  --border: #5a3520;
  --border-line: #7a4530;
  --placeholder-bg: #5a3520;
  --block-bg: #452515;
  --btn-bg: #452515;
  --btn-hover: #603520;
  --main: #ff9f0a;
  --success: #30d158;
  --warning: #ff9f0a;
  --danger: #ff453a;
  --card-bg: #3d2010;
  --shadow: 0 2px 8px rgba(255, 159, 10, 0.2);
}

.theme-yellow {
  --bg: #fffbe6;
  --trbg: rgba(255, 251, 230, 0.3);
  --text: #4a3a00;
  --text-sub: #6a5a00;
  --text-placeholder: #ccbb77;
  --border: #f8e8b8;
  --border-line: #ffeecc;
  --placeholder-bg: #ffeecc;
  --block-bg: #fff6cc;
  --btn-bg: #fff6cc;
  --btn-hover: #fff0ad;
  --main: #ffcc00;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #fff8e0;
  --shadow: 0 2px 8px rgba(255, 204, 0, 0.1);
}

.theme-yellow-dark {
  --bg: #2d2a0a;
  --trbg: rgba(45, 42, 10, 0.3);
  --text: #fff0cc;
  --text-sub: #ffddaa;
  --text-placeholder: #8a8555;
  --border: #5a5020;
  --border-line: #7a7030;
  --placeholder-bg: #5a5020;
  --block-bg: #454015;
  --btn-bg: #454015;
  --btn-hover: #605520;
  --main: #ffd60a;
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #3d3510;
  --shadow: 0 2px 8px rgba(255, 214, 10, 0.2);
}

.theme-green {
  --bg: #f2fff5;
  --trbg: rgba(242, 255, 245, 0.26);
  --text: #003a00;
  --text-sub: #005a00;
  --text-placeholder: #99cc99;
  --border: #b8f8c8;
  --border-line: #ccffdd;
  --placeholder-bg: #ccffdd;
  --block-bg: #d6ffde;
  --btn-bg: #d6ffde;
  --btn-hover: #adffc1;
  --main: #34c759;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #e8ffe8;
  --shadow: 0 2px 8px rgba(52, 199, 89, 0.1);
}

.theme-green-dark {
  --bg: #0a2d0a;
  --trbg: rgba(10, 45, 10, 0.3);
  --text: #ccffcc;
  --text-sub: #aaffaa;
  --text-placeholder: #558a55;
  --border: #205a20;
  --border-line: #307a30;
  --placeholder-bg: #205a20;
  --block-bg: #154515;
  --btn-bg: #154515;
  --btn-hover: #206020;
  --main: #30d158;
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #103d10;
  --shadow: 0 2px 8px rgba(48, 209, 88, 0.2);
}

.theme-teal {
  --bg: #f0fff7;
  --trbg: rgba(240, 255, 247, 0.3);
  --text: #004a30;
  --text-sub: #006a40;
  --text-placeholder: #99ccbb;
  --border: #b8f8e0;
  --border-line: #ccffe0;
  --placeholder-bg: #ccffe0;
  --block-bg: #d6ffee;
  --btn-bg: #d6ffee;
  --btn-hover: #adffdf;
  --main: #00c7be;
  --success: #00c7be;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #e8fff8;
  --shadow: 0 2px 8px rgba(0, 199, 190, 0.1);
}

.theme-cyan {
  --bg: #f0fffc;
  --trbg: rgba(240, 255, 252, 0.3);
  --text: #004a4a;
  --text-sub: #006a6a;
  --text-placeholder: #99cccc;
  --border: #b8f0f0;
  --border-line: #ccffff;
  --placeholder-bg: #ccffff;
  --block-bg: #d6ffff;
  --btn-bg: #d6ffff;
  --btn-hover: #adffff;
  --main: #00bcd4;
  --success: #00bcd4;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #e8ffff;
  --shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

.theme-cyan-dark {
  --bg: #0a2d2d;
  --trbg: rgba(10, 45, 45, 0.3);
  --text: #ccffff;
  --text-sub: #aaffff;
  --text-placeholder: #558a8a;
  --border: #205a5a;
  --border-line: #307a7a;
  --placeholder-bg: #205a5a;
  --block-bg: #154545;
  --btn-bg: #154545;
  --btn-hover: #206060;
  --main: #00bcd4;
  --success: #00bcd4;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #103d3d;
  --shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

.theme-blue {
  --bg: #f0f7ff;
  --trbg: rgba(240, 247, 255, 0.253);
  --text: #002a5a;
  --text-sub: #004a7a;
  --text-placeholder: #99aacc;
  --border: #b8d8f8;
  --border-line: #ccddff;
  --placeholder-bg: #ccddff;
  --block-bg: #d6e8ff;
  --btn-bg: #d6e8ff;
  --btn-hover: #adcfff;
  --main: #007aff;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #e8f3ff;
  --shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.theme-blue-dark {
  --bg: #0a1a2d;
  --trbg: rgba(10, 26, 45, 0.3);
  --text: #cce0ff;
  --text-sub: #aaddff;
  --text-placeholder: #556a8a;
  --border: #203a5a;
  --border-line: #304a7a;
  --placeholder-bg: #203a5a;
  --block-bg: #152545;
  --btn-bg: #152545;
  --btn-hover: #203560;
  --main: #0a84ff;
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #10203d;
  --shadow: 0 2px 8px rgba(10, 132, 255, 0.2);
}

.theme-indigo {
  --bg: #f0f0ff;
  --trbg: rgba(240, 240, 255, 0.3);
  --text: #20205a;
  --text-sub: #30307a;
  --text-placeholder: #aaaacc;
  --border: #c8c8f8;
  --border-line: #ddddff;
  --placeholder-bg: #ddddff;
  --block-bg: #e0e0ff;
  --btn-bg: #e0e0ff;
  --btn-hover: #c8c8ff;
  --main: #5856d6;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #e8e8ff;
  --shadow: 0 2px 8px rgba(88, 86, 214, 0.1);
}

.theme-purple {
  --bg: #f5f0ff;
  --trbg: rgba(245, 240, 255, 0.3);
  --text: #30205a;
  --text-sub: #40307a;
  --text-placeholder: #bbaacc;
  --border: #d0b8f8;
  --border-line: #eeccee;
  --placeholder-bg: #eeccee;
  --block-bg: #e8d6ff;
  --btn-bg: #e8d6ff;
  --btn-hover: #d8adff;
  --main: #af52de;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #f0e8ff;
  --shadow: 0 2px 8px rgba(175, 82, 222, 0.1);
}

.theme-purple-dark {
  --bg: #1a0a2d;
  --trbg: rgba(26, 10, 45, 0.3);
  --text: #e0ccff;
  --text-sub: #ccaaee;
  --text-placeholder: #6a558a;
  --border: #3a205a;
  --border-line: #4a307a;
  --placeholder-bg: #3a205a;
  --block-bg: #251545;
  --btn-bg: #251545;
  --btn-hover: #352060;
  --main: #bf5af2;
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --card-bg: #20103d;
  --shadow: 0 2px 8px rgba(191, 90, 242, 0.2);
}

.theme-violet {
  --bg: #fff0ff;
  --trbg: rgba(255, 240, 255, 0.3);
  --text: #4a004a;
  --text-sub: #6a006a;
  --text-placeholder: #cc99cc;
  --border: #f0b8f0;
  --border-line: #ffccec;
  --placeholder-bg: #ffccec;
  --block-bg: #ffd6ff;
  --btn-bg: #ffd6ff;
  --btn-hover: #ffadff;
  --main: #ff375f;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff375f;
  --card-bg: #ffe8ff;
  --shadow: 0 2px 8px rgba(255, 55, 95, 0.1);
}

.theme-high-contrast {
  --bg: #000000;
  --trbg: rgba(0, 0, 0, 0.5);
  --text: #ffffff;
  --text-sub: #ffffff;
  --text-placeholder: #888888;
  --border: #ffffff;
  --border-line: #ffffff;
  --placeholder-bg: #333333;
  --block-bg: #111111;
  --btn-bg: #333333;
  --btn-hover: #555555;
  --main: #ffff00;
  --success: #00ff00;
  --warning: #ff8800;
  --danger: #ff0000;
  --card-bg: #111111;
  --shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.theme-eye-care {
  --bg: #c7edcc;
  --trbg: rgba(199, 237, 204, 0.3);
  --text: #333333;
  --text-sub: #444444;
  --text-placeholder: #88aa88;
  --border: #a0d8a8;
  --border-line: #b8e4c0;
  --placeholder-bg: #b8e4c0;
  --block-bg: #b8e4c0;
  --btn-bg: #b8e4c0;
  --btn-hover: #a8d8b0;
  --main: #4a9f6a;
  --success: #4a9f6a;
  --warning: #ccaa00;
  --danger: #cc6666;
  --card-bg: #d8f0dc;
  --shadow: 0 2px 8px rgba(74, 159, 106, 0.1);
}

.theme-sunset {
  --bg: #fff0e8;
  --trbg: rgba(255, 240, 232, 0.3);
  --text: #5a3030;
  --text-sub: #7a4040;
  --text-placeholder: #ccaaa0;
  --border: #f0c0b0;
  --border-line: #ffd4c4;
  --placeholder-bg: #ffd4c4;
  --block-bg: #ffe0d0;
  --btn-bg: #ffe0d0;
  --btn-hover: #ffd0c0;
  --main: #ff6b6b;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff6b6b;
  --card-bg: #ffe8e0;
  --shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.theme-ocean {
  --bg: #e0f0ff;
  --trbg: rgba(224, 240, 255, 0.3);
  --text: #1a3a5a;
  --text-sub: #2a4a6a;
  --text-placeholder: #99bbcc;
  --border: #a0c8e8;
  --border-line: #c0d8f0;
  --placeholder-bg: #c0d8f0;
  --block-bg: #c8e0f8;
  --btn-bg: #c8e0f8;
  --btn-hover: #b0d0f0;
  --main: #00a8cc;
  --success: #00a8cc;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #d0e8ff;
  --shadow: 0 2px 8px rgba(0, 168, 204, 0.1);
}

.theme-forest {
  --bg: #e0f0e0;
  --trbg: rgba(224, 240, 224, 0.3);
  --text: #1a3a1a;
  --text-sub: #2a4a2a;
  --text-placeholder: #99bb99;
  --border: #a0c8a0;
  --border-line: #c0d8c0;
  --placeholder-bg: #c0d8c0;
  --block-bg: #c8e0c8;
  --btn-bg: #c8e0c8;
  --btn-hover: #b0d0b0;
  --main: #5ab07a;
  --success: #5ab07a;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: #d0e8d0;
  --shadow: 0 2px 8px rgba(90, 176, 122, 0.1);
}

.theme-rainbow {
  --bg: #ffffff;
  --trbg: rgba(255, 255, 255, 0.3);
  --text: #333333;
  --text-sub: #444444;
  --text-placeholder: #999999;
  --border: #d0d0d0;
  --border-line: #e0e0e0;
  --placeholder-bg: #eeeeee;
  --block-bg: rgba(255, 255, 255, 0.5);
  --btn-bg: rgba(255, 255, 255, 0.5);
  --btn-hover: rgba(255, 255, 255, 0.7);
  --main: #ff6b6b;
  --success: #34c759;
  --warning: #ffcc00;
  --danger: #ff3b30;
  --card-bg: rgba(255, 255, 255, 0.6);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


