#dfApp {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  font-size: 14px;
}

.df-form {
  margin-bottom: 8px;
}

.df-field {
  margin-bottom: 12px;
}

.df-date-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.df-input {
  width: 100%;
  padding: 10px 42px 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.df-input:focus {
  border-color: #52c41a;
  box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.15);
}

.df-picker {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: transparent;
  cursor: pointer;
  z-index: 2;
}

.df-picker::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  background: transparent;
}

/* 日历图标（兼容不显示原生指示器的浏览器） */
.df-date-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.df-actions {
  margin-bottom: 10px;
}

.df-btn {
  padding: 9px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

.df-btn-primary {
  background: #52c41a;
  border-color: #52c41a;
  color: #fff;
}

.df-btn-primary:hover {
  background: #389e0d;
  border-color: #389e0d;
}

.df-error {
  margin: 0 0 12px;
  color: #cf1322;
  font-size: 13px;
}

.df-output {
  margin-top: 8px;
}

.df-output .df-table-wrap {
  margin-bottom: 16px;
}

.df-table-wrap {
  overflow-x: auto;
  border: 1px solid #eee;
  border-radius: 6px;
}

.df-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.df-table th,
.df-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
}

.df-table th {
  background: #fafafa;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.df-table tr:last-child td {
  border-bottom: none;
}

.df-result-cell {
  white-space: nowrap;
}

.df-result-text {
  font-weight: 600;
  color: #222;
}

.df-copy {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  vertical-align: middle;
}

.df-copy:hover {
  border-color: #52c41a;
  color: #389e0d;
}

.df-copy.is-ok {
  background: #f6ffed;
  border-color: #b7eb8f;
  color: #389e0d;
}

.df-section {
  margin-top: 28px;
}

.df-section h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 17px;
  border-bottom: 2px solid #52c41a;
  color: #222;
}

.df-section p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #555;
}

.df-pre {
  margin: 0;
  padding: 14px 16px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
  overflow-x: auto;
}

@media (max-width: 720px) {
  .df-date-wrap {
    max-width: 100%;
  }

  .df-result-cell {
    white-space: normal;
  }

  .df-copy {
    display: inline-block;
    margin: 4px 0 0;
  }
}
