/* ===== 车来了 DevKit 样式 ===== */

:root {
  /* 主题色 */
  --brand: #7c3aed;
  --brand-light: #a78bfa;
  --brand-bg: #f3eefe;
  --brand-dark: #5b21b6;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-bg: #e8f0fe;
  --accent2: #f59e0b;
  --accent2-bg: #fff7ed;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --red: #dc2626;
  --red-bg: #fef2f2;

  /* 中性色 */
  --bg: #f7f8fa;
  --bg2: #ffffff;
  --bg3: #f0f1f5;
  --ink: #1a1a2e;
  --ink-2: #374151;
  --muted: #6c7080;
  --muted-2: #9ca3af;
  --rule: #e8eaef;
  --rule-2: #d1d5db;

  /* 尺寸 */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);

  /* 字体 */
  --font-sans: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f;
    --bg2: #1a1a2e;
    --bg3: #252540;
    --ink: #e8e8f0;
    --ink-2: #c8c8d8;
    --muted: #9999b0;
    --muted-2: #6b6b85;
    --rule: #2a2a45;
    --rule-2: #3a3a55;
    --brand-bg: #2a2240;
    --accent-bg: #1a2a4a;
    --accent2-bg: #3a2a1a;
    --green-bg: #1a3a2a;
    --red-bg: #3a1a1a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航 ===== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.brand-icon { font-size: 22px; }
.brand-sub {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--brand-bg);
  border-radius: 4px;
  margin-left: 2px;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}
.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s;
  font-family: inherit;
}
.nav-tab:hover {
  background: var(--bg3);
  color: var(--ink);
}
.nav-tab.active {
  background: var(--brand-bg);
  color: var(--brand);
  font-weight: 600;
}
.tab-icon { font-size: 14px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-bg);
}
.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}

/* ===== 主内容 ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  min-height: calc(100vh - 56px);
}

.page { animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--rule-2);
  background: var(--bg2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-back {
  margin-bottom: 16px;
  background: transparent;
  border: 1px solid var(--rule);
}

/* ===== 开发者中心布局 ===== */
.dev-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  height: calc(100vh - 96px);
}

.dev-sidebar {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.sidebar-header h3 { font-size: 14px; font-weight: 700; }
.api-count {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 10px;
}
.api-search { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.api-search input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.api-search input:focus { border-color: var(--brand); }

.api-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}
.api-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  transition: background 0.1s;
}
.api-item:hover { background: var(--bg3); }
.api-item.active {
  background: var(--brand-bg);
  border-left: 3px solid var(--brand);
  padding-left: 13px;
}
.api-item .api-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.api-item .api-method {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 3px;
  text-transform: uppercase;
}
.api-method.get { background: var(--green-bg); color: var(--green); }
.api-method.post { background: var(--accent2-bg); color: var(--accent2); }
.api-item .api-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* API 详情 */
.dev-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  position: relative;
}

/* API 文档链接 */
.nav-tab[target="_blank"] {
  text-decoration: none;
}
.nav-tab[target="_blank"]::after {
  content: "↗";
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.6;
}

.api-detail {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex-shrink: 0;
}
.detail-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.ph-icon { font-size: 48px; margin-bottom: 12px; }
.detail-placeholder p { font-size: 14px; }
.detail-placeholder .ph-sub { font-size: 12px; margin-top: 4px; color: var(--muted-2); }

.api-detail h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.api-detail .api-url {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  word-break: break-all;
  color: var(--ink-2);
}
.api-detail .api-description {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-section {
  margin-top: 18px;
}
.detail-section h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-section h3::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--brand);
  border-radius: 2px;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.param-table th, .param-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.param-table th {
  background: var(--bg3);
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.param-table td .param-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.param-table td .param-required {
  font-size: 10px;
  color: var(--red);
  margin-left: 4px;
}
.param-table td .param-optional {
  font-size: 10px;
  color: var(--muted-2);
  margin-left: 4px;
}

.code-block {
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--ink-2);
  max-height: 300px;
  overflow-y: auto;
}

/* 返回字段解释表 */
.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.field-table th, .field-table td {
  padding: 7px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.field-table th {
  background: var(--bg3);
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
}
.field-table .field-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.field-table .field-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.field-table .field-type {
  font-size: 10px;
  color: var(--muted);
}
.field-table .field-desc {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ===== 浮动调试按钮 ===== */
.debug-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.debug-float-btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}
.debug-float-btn .float-icon { font-size: 18px; }
.debug-float-btn .float-text { font-size: 13px; }

/* ===== 调试弹窗 ===== */
.debug-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.debug-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.debug-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 1000;
  width: 640px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  background: var(--bg2);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.debug-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.debug-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.debug-popup-header h4 {
  font-size: 15px;
  font-weight: 700;
}
.debug-popup-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.debug-popup-close:hover {
  background: var(--bg3);
  color: var(--red);
}

.debug-popup-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.debug-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.debug-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.debug-field select {
  padding: 9px 12px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
}
.debug-field select:focus { border-color: var(--brand); }

.debug-api-info {
  padding: 10px 14px;
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
.debug-api-info .api-method-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  text-transform: uppercase;
}
.debug-api-info .api-method-tag.get { background: var(--green-bg); color: var(--green); }
.debug-api-info .api-method-tag.post { background: var(--accent2-bg); color: var(--accent2); }
.debug-api-info .api-endpoint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.debug-params-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.debug-param-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.debug-param-item label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.debug-param-item label .param-req { color: var(--red); margin-left: 2px; }
.debug-param-item label .param-type { color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.debug-param-item input {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.15s;
}
.debug-param-item input:focus { border-color: var(--brand); }
.debug-param-item.full-width { grid-column: 1 / -1; }

.debug-send-btn {
  align-self: flex-start;
  padding: 10px 24px;
}

.debug-response-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.debug-resp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg3);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.resp-status { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: var(--bg); color: var(--muted); }
.resp-status.success { background: var(--green-bg); color: var(--green); }
.resp-status.error { background: var(--red-bg); color: var(--red); }
.debug-resp-content {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  overflow: auto;
  background: var(--bg);
  color: var(--ink-2);
  max-height: 300px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ===== 示例应用 ===== */
.demo-header {
  text-align: center;
  padding: 30px 20px 20px;
}
.demo-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.demo-header p { font-size: 13px; color: var(--muted); }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.demo-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.demo-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.demo-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.demo-card p { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.demo-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10px;
  padding: 3px 10px;
  background: var(--bg3);
  color: var(--muted);
  border-radius: 12px;
  font-weight: 500;
}

.demo-detail {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  min-height: 500px;
}

/* ===== 应用内通用组件 ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.app-title { display: flex; align-items: center; gap: 10px; }
.app-title h2 { font-size: 18px; font-weight: 700; }
.app-title .app-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--muted); }
.form-group input, .form-group select {
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--brand); }

.stop-card {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
}
.stop-card .stop-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stop-dist {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg2);
  padding: 2px 8px;
  border-radius: 10px;
}
.line-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--rule);
}
.line-row:last-child { border-bottom: none; }
.line-no {
  font-weight: 700;
  min-width: 50px;
  font-size: 11px;
  color: var(--brand);
}
.line-dest { flex: 1; color: var(--muted); font-size: 11px; }
.line-eta {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

.bus-card {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--brand);
}
.bus-card.rev { border-left-color: var(--accent2); }
.bus-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.bus-plate {
  font-size: 12px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
}
.bus-card.rev .bus-plate { background: var(--accent2); }
.bus-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 11px;
}
.bus-info .label { color: var(--muted); font-size: 10px; }
.bus-info .val { font-weight: 600; }

.eta-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--green-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
}
.eta-label { font-size: 10px; color: var(--green); font-weight: 600; }
.eta-val { font-size: 16px; font-weight: 700; color: var(--green); margin-top: 2px; }
.eta-detail { font-size: 10px; color: var(--muted); margin-top: 2px; }

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-info { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent); }
.alert-warn { background: var(--accent2-bg); color: var(--accent2); border: 1px solid var(--accent2); }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }

/* 线路图 */
.route-stations {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 10px 0 4px;
}
.route-station {
  flex: 0 0 auto;
  min-width: 60px;
  text-align: center;
  position: relative;
  font-size: 10px;
  color: var(--muted);
}
.route-station .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-2);
  margin: 0 auto 4px;
  position: relative;
  z-index: 1;
}
.route-station.passed .dot { background: var(--brand); opacity: 0.5; }
.route-station.current .dot {
  background: var(--brand);
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px var(--brand-bg);
}
.route-station.target .dot {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-bg);
}
.route-station .line {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--rule-2);
  z-index: 0;
}
.route-station:last-child .line { display: none; }
.route-station.passed .line { background: var(--brand); opacity: 0.5; }
.route-station .name {
  word-break: break-all;
  line-height: 1.2;
  max-width: 56px;
  margin: 0 auto;
}
.route-station.current .name,
.route-station.target .name { font-weight: 700; color: var(--ink); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg2);
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .dev-layout { grid-template-columns: 240px 1fr; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .debug-params-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-nav { padding: 0 12px; }
  .main-content { padding: 12px; }
  .dev-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .dev-sidebar { max-height: 300px; }
  .demo-grid { grid-template-columns: 1fr; }
  .nav-tab { padding: 8px 10px; font-size: 12px; }
  .tab-icon { display: none; }
  .debug-float-btn .float-text { display: none; }
  .debug-float-btn { padding: 14px; }
  .debug-popup { width: calc(100vw - 24px); }
  .debug-params-list { grid-template-columns: 1fr; }
}
