/**
 * channel-settings.css
 * 频道设置面板样式 · 环节9
 */
.settings-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color, #e0e0e0);
}

.settings-header {
  text-align: center;
  margin-bottom: 30px;
}

.settings-header h2 {
  font-size: 24px;
  color: var(--accent-color, #4fc3f7);
  margin-bottom: 8px;
}

/* 设置分组 */
.settings-group {
  background: var(--card-bg, #1a1a2e);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #2a2a4a);
}

.settings-group h3 {
  font-size: 16px;
  color: var(--accent-color, #4fc3f7);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #2a2a4a);
}

/* 设置行 */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.setting-label .title {
  font-size: 14px;
  font-weight: 500;
}

.setting-label .desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* 开关组件 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: 16px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: .3s;
  border-radius: 24px;
}

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

input:checked + .toggle-slider {
  background: var(--accent-color, #4fc3f7);
}

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

/* 下拉选择 */
.setting-select {
  background: var(--card-bg, #1a1a2e);
  color: var(--text-color, #e0e0e0);
  border: 1px solid var(--border-color, #2a2a4a);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 16px;
}

/* 主题预览卡片 */
.theme-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-card {
  width: 120px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
}

.theme-card:hover {
  transform: translateY(-2px);
}

.theme-card.active {
  border-color: var(--accent-color, #4fc3f7);
}

.theme-preview {
  height: 40px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* 操作按钮组 */
.settings-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-settings {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-settings:hover {
  transform: translateY(-1px);
}

.btn-export {
  background: #66bb6a;
  color: white;
}

.btn-import {
  background: #42a5f5;
  color: white;
}

.btn-reset {
  background: #ff7043;
  color: white;
}

/* 导入弹窗 */
.import-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.import-modal.show {
  display: flex;
}

.import-dialog {
  background: var(--card-bg, #1a1a2e);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-color);
}

.import-textarea {
  width: 100%;
  height: 150px;
  background: #111;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  font-family: monospace;
  font-size: 13px;
  resize: vertical;
  margin: 12px 0;
}

/* 响应式 */
@media (max-width: 600px) {
  .theme-cards {
    justify-content: center;
  }
  .settings-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 无动画模式 */
.no-animation * {
  transition: none !important;
  animation: none !important;
}

/* 字体大小全局应用 */
body, .channel-btn, .module-card, .channel-content, .nav-item,
p, span, div, h1, h2, h3, h4, a, button, .setting-row, .setting-label {
    font-size: var(--base-font-size, 15px);
}
