* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: #1f2329;
  background: #f5f6f7;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  max-width: 480px;
  margin: 0 auto;
}

.header { margin-bottom: 16px; }
.header h1 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.subtitle { margin: 0; font-size: 13px; color: #646a73; }

.main {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}
.required { color: #f54a45; }

.form-group input,
.form-group select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dee0e3;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.form-group input:focus,
.form-group select:focus { border-color: #3370ff; }
.form-group input[readonly] { background: #f5f6f7; color: #646a73; cursor: not-allowed; }
.form-group select:disabled { background: #f5f6f7; color: #8f959e; cursor: not-allowed; }

.error {
  margin-top: 12px;
  padding: 8px 10px;
  background: #fef0f0;
  border: 1px solid #fde2e2;
  color: #f54a45;
  border-radius: 6px;
  font-size: 12px;
}

.footer { margin-top: 16px; }
.footer button {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #3370ff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.footer button:hover:not(:disabled) { background: #245bdb; }
.footer button:disabled { background: #c9cdd4; cursor: not-allowed; }