
.home[data-v-d9cc6569] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
  box-sizing: border-box;
}
.nav-grid[data-v-d9cc6569] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.nav-card[data-v-d9cc6569] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.12s;
  min-height: 132px;
  -webkit-tap-highlight-color: transparent;
}
.nav-card[data-v-d9cc6569]:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.nav-card[data-v-d9cc6569]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-icon[data-v-d9cc6569] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-label[data-v-d9cc6569] {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.nav-desc[data-v-d9cc6569] {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}
.build-time[data-v-d9cc6569] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 10;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --radius: 12px;
  --radius-input: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #e8ecf3;
  --border: #d1dae6;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --danger: #ef4444;
  --danger-soft: #ef4444;
  --header-bg: rgba(255, 255, 255, 0.94);
  --modal-backdrop: rgba(15, 23, 42, 0.45);
  --float-bar-bg: rgba(255, 255, 255, 0.98);
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  min-height: 2.25rem;
}

.header-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-side--start {
  justify-content: flex-start;
}

.header-side--end {
  justify-content: flex-end;
}

.header-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-input);
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}

.header-back:hover {
  color: var(--accent);
  background: var(--surface-hover);
}

.header-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-title {
  margin: 0;
  padding: 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  justify-self: center;
}

.app-main {
  flex: 1;
  padding: 1rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.app-main--wide {
  max-width: 1280px;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.15s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* —— 通用布局与表单 —— */

.page-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}

.toolbar,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.toolbar > .btn,
.actions > .btn,
.modal-actions > .btn {
  flex: 1 1 0;
  min-width: 0;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.45;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.textarea--tall {
  min-height: 280px;
}

.textarea--mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.input--narrow {
  max-width: 360px;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
}

.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.result {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.result strong {
  color: var(--text);
  font-weight: 600;
}

.form-error {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--danger);
}

/* 按钮 */
button {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    filter 0.15s;
}

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

.btn:hover:not(:disabled) {
  border-color: var(--muted);
}

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

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

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

.btn.danger:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn.ghost {
  background: transparent;
}

.btn.sm {
  padding: 0.35rem 0.65rem;
  min-height: 2rem;
  font-size: 0.8rem;
}

.btn.flex-1 {
  flex: 1 1 0;
  min-width: 0;
}

/* 列表 */
.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-plain li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}

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

.list-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-input);
}

.icon-btn:hover {
  color: var(--text);
}

.modal-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field.row-2 {
  flex-direction: row;
  gap: 1rem;
}

.field-inline {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.file-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
