* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
body {
  background-color: #f5f7fa;
  padding: 20px;
}
.container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}
/* 左侧表单区域 */
.form-panel {
  width: 460px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 8px #00000015;
}
.group-title {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.group-title:first-child {
  margin-top: 0;
}
.row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-item label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}
.form-item input,
.form-item select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}
/* 右侧预览面板 */
.preview-panel {
  flex: 1;
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.preview-header h3 {
  font-size: 16px;
  font-weight: 500;
}
.btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-group select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
}
.btn-download {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background: #4080ff;
  color: #ffffff;
}
.btn-download:hover {
  background: #3070ee;
}
/* 车票预览容器 */
.ticket-preview-wrap {
  width: 560px;
  min-height: 340px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 12px #00000018;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#ticketCanvas {
  display: none;
  max-width: 100%;
}
.ticket-placeholder {
  width: 480px;
  height: 280px;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}