/* ========== 设置列表 ========== */
.settings-list {
  display: flex; flex-direction: column; gap: 1px;
  background: #f5f5f5; border-radius: 14px; overflow: hidden;
}
.settings-item {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: #fff; cursor: pointer; transition: background 0.15s;
}
.settings-item:active { background: #f9f9f9; }
.settings-item-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #f0f0f5;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.settings-item-icon svg { width: 20px; height: 20px; stroke: #1c1c1e; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.settings-item-text { flex: 1; min-width: 0; }
.settings-item-title { font-size: 15px; font-weight: 600; color: #1c1c1e; }
.settings-item-desc { font-size: 12px; color: #8e8e93; margin-top: 2px; }
.settings-arrow { width: 16px; height: 16px; stroke: #c7c7cc; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ========== API 配置页 ========== */
.api-section { background: #fff; border: 1.5px solid #f0f0f0; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.api-section-title { font-size: 13px; font-weight: 700; color: #8e8e93; margin-bottom: 12px; }
.api-field { margin-bottom: 14px; }
.api-field:last-child { margin-bottom: 0; }
.api-field-label { font-size: 13px; font-weight: 600; color: #3c3c43; margin-bottom: 6px; }
.api-field-row { display: flex; gap: 8px; align-items: center; }
.api-input { width: 100%; padding: 10px 14px; border: 1.5px solid #e5e5ea; border-radius: 10px; font-size: 14px; font-family: inherit; color: #1c1c1e; background: #fafafa; outline: none; }
.api-input:focus { border-color: #1c1c1e; background: #fff; }
.api-icon-btn { width: 38px; height: 38px; border: 1.5px solid #e5e5ea; border-radius: 10px; background: #fafafa; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.api-icon-btn svg { width: 18px; height: 18px; stroke: #1c1c1e; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.api-model-list { display: none; max-height: 180px; overflow-y: auto; margin-top: 8px; border: 1.5px solid #e5e5ea; border-radius: 10px; background: #fff; }
.api-model-list.show { display: block; }
.api-model-item { padding: 10px 14px; font-size: 13px; color: #1c1c1e; cursor: pointer; border-bottom: 0.5px solid rgba(0,0,0,0.04); }
.api-model-item.selected { background: #f0f5ff; font-weight: 700; }
.api-model-search { width: calc(100% - 16px); margin: 8px; padding: 8px 12px; border: 1px solid #e5e5ea; border-radius: 8px; font-size: 12px; font-family: inherit; outline: none; }
.api-btn-group { display: flex; gap: 10px; margin-top: 6px; }
.api-btn { flex: 1; padding: 12px; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.api-btn-primary { background: #1c1c1e; color: #fff; }
.api-saved-list { display: flex; flex-direction: column; gap: 10px; }
.api-saved-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 12px; border: 1.5px solid #f0f0f0; }
.api-saved-item.active { border-color: #1c1c1e; }
.api-saved-info { flex: 1; min-width: 0; }
.api-saved-name { font-size: 14px; font-weight: 600; color: #1c1c1e; }
.api-saved-detail { font-size: 11px; color: #8e8e93; margin-top: 2px; }
.api-saved-tag { font-size: 10px; color: #fff; background: #1c1c1e; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.api-saved-actions { display: flex; gap: 6px; }
.api-saved-act { width: 30px; height: 30px; border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #f5f5f7; }
.api-saved-act svg { width: 15px; height: 15px; stroke: #1c1c1e; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.api-saved-act.delete svg { stroke: #ff3b30; }
.api-param-card { margin-bottom: 16px; }
.api-param-title { font-size: 14px; font-weight: 600; color: #1c1c1e; }
.api-param-desc { font-size: 11px; color: #8e8e93; margin-bottom: 8px; }
.api-param-row { display: flex; align-items: center; gap: 10px; }
.api-param-row input[type="range"] { flex: 1; min-width: 0; }
.api-param-val { font-size: 13px; font-weight: 700; color: #1c1c1e; min-width: 36px; text-align: right; }
.api-tabs { display: flex; gap: 0; background: #f0f0f5; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.api-tab { flex: 1; padding: 8px 0; text-align: center; font-size: 13px; font-weight: 600; color: #8e8e93; border-radius: 8px; cursor: pointer; }
.api-tab.active { background: #fff; color: #1c1c1e; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.api-empty { text-align: center; padding: 40px 20px; color: #8e8e93; font-size: 14px; }

/* ========== 数据页 ========== */
.data-section { background: #fff; border: 1.5px solid #f0f0f0; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.data-item { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; border-bottom: 0.5px solid rgba(0,0,0,0.04); }
.data-item-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.data-item-icon svg { width: 18px; height: 18px; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.data-item-icon.export { background: #e8f5e9; } .data-item-icon.export svg { stroke: #4caf50; }
.data-item-icon.import { background: #e3f2fd; } .data-item-icon.import svg { stroke: #2196f3; }
.data-item-icon.danger { background: #ffebee; } .data-item-icon.danger svg { stroke: #f44336; }
.data-item-text { flex: 1; }
.data-item-title { font-size: 15px; font-weight: 600; color: #1c1c1e; }
.data-item-desc { font-size: 12px; color: #8e8e93; margin-top: 2px; }
.data-item-title.danger { color: #ff3b30; }
