:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0,0,0,0.05);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); padding: 20px; min-height: 100vh; }
.container { max-width: 900px; margin: 0 auto; }
header { text-align: center; margin-bottom: 30px; }
header h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 8px; }
.subtitle { font-size: 1rem; color: var(--text-secondary); }
.nav-links { text-align: right; margin-top: 5px; font-size: 0.9rem; }
.nav-links a { color: var(--primary); text-decoration: none; font-weight: 500; margin-left: 8px; }
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 30px; }
.input-section { display: flex; flex-direction: column; gap: 12px; }
label { font-weight: 600; }
textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem; font-family: inherit;
}
textarea:focus, input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.btn-primary, .btn-secondary { padding: 12px 24px; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: #e2e8f0; color: #333; }
.btn-secondary:hover { opacity: 0.85; }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; border-radius: 6px; }
.result-section { margin-top: 20px; }
.result-section h2 { color: var(--primary); margin-bottom: 15px; }
.field-group { background: #f8fafc; border-left: 4px solid var(--primary); border-radius: 12px; padding: 18px; margin-bottom: 15px; }
.field-group h3 { font-size: 1.05rem; margin-bottom: 10px; }
.field-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: baseline; }
.field-item { background: white; border-radius: 8px; padding: 8px 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.field-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; }
.field-value { font-weight: 600; font-size: 0.95rem; margin-top: 2px; }
.edit-field { border: 1px dashed var(--border); padding: 4px; border-radius: 4px; width: auto; min-width: 80px; }
footer { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin-top: 20px; }

/* 模态框 */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: white; border-radius: 12px; padding: 30px; max-width: 400px; text-align: center; }
.modal-message { margin-bottom: 20px; font-size: 1.1rem; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; }

@media (max-width: 600px) {
  body { padding: 12px; }
  header h1 { font-size: 1.8rem; }
  .card { padding: 20px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .field-row { flex-direction: column; gap: 8px; }
}