.jjj-qn-root {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #e6f7fd;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: rgba(0, 0, 0, 0.85);
}

.jjj-qn-root.hidden {
  display: none;
}

/* Header (matches platform style) */
.jjj-qn-header {
  padding-top: 28px;
  height: 208px;
  background: url(/img/header-bg.c6859eab.png);
  background-size: cover;
  position: relative;
  flex-shrink: 0;
}

.jjj-qn-header .title {
  position: absolute;
  display: flex;
  align-items: center;
  top: 23px;
  left: 20px;
  font-weight: 700;
  color: #fff;
  font-size: 24px;
}

.jjj-qn-header .title img {
  margin-right: 8px;
  width: 48px;
}

.jjj-qn-header .function-group {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 18px;
}

.jjj-qn-header .lang-btn {
  height: 32px;
  line-height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: hsla(0, 0%, 100%, 0.25);
  margin-right: 32px;
  cursor: pointer;
}

.jjj-qn-header .button-group {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 55px;
  padding: 0 320px;
  box-sizing: border-box;
}

.jjj-qn-header .button-item {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 18px;
  cursor: pointer;
  padding-bottom: 5px;
  white-space: nowrap;
}

.jjj-qn-header .button-item.active {
  font-weight: 700;
  color: #fff;
  border-bottom: 4px solid #23c1fa;
}

/* Main content */
.jjj-qn-main {
  max-width: 1383px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

/* Landing banner (Figure 1 style) */
.jjj-qn-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.jjj-qn-banner-card {
  background: linear-gradient(135deg, #4a9cf5 0%, #2563eb 55%, #1d4ed8 100%);
  border-radius: 12px;
  padding: 36px 40px;
  min-height: 220px;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.jjj-qn-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.jjj-qn-banner-card h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.jjj-qn-banner-card p {
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.8;
  margin: 0 0 24px;
  max-width: 420px;
}

.jjj-qn-banner-btn {
  display: inline-block;
  background: #ff893b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.jjj-qn-banner-icon {
  position: absolute;
  right: 24px;
  bottom: 16px;
  width: 120px;
  height: 120px;
  opacity: 0.9;
}

.jjj-qn-info-panel {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.jjj-qn-info-panel h3 {
  font-size: 20px;
  color: #1890ff;
  margin: 0 0 12px;
}

.jjj-qn-info-panel p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
}

/* Form page (Figure 2 style) */
.jjj-qn-form-page {
  background: #eef6fc;
  min-height: calc(100vh - 208px);
  padding-bottom: 40px;
}

.jjj-qn-form-header {
  text-align: center;
  background: #fff;
  border: 2px solid #91d5ff;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(24, 144, 255, 0.08);
}

.jjj-qn-form-header h1 {
  font-size: 28px;
  color: #1890ff;
  margin: 0 0 8px;
  font-weight: 700;
}

.jjj-qn-form-header p {
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  font-size: 14px;
}

.jjj-qn-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.jjj-qn-form-grid .full-width {
  grid-column: 1 / -1;
}

.jjj-qn-card {
  background: #fff;
  border: 1px solid #bae7ff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.06);
}

.jjj-qn-card h3 {
  text-align: center;
  color: #1890ff;
  font-size: 17px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6f7ff;
}

.jjj-qn-field {
  margin-bottom: 14px;
}

.jjj-qn-field label {
  display: block;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 6px;
  font-weight: 500;
}

.jjj-qn-field label .req {
  color: #ff4d4f;
  margin-left: 2px;
}

.jjj-qn-field label .req-tag {
  color: #fa8c16;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 500;
}

.jjj-qn-field-hint {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin: -2px 0 8px;
  line-height: 1.5;
}

.jjj-qn-field input[type="text"],
.jjj-qn-field input[type="number"],
.jjj-qn-field input[type="tel"],
.jjj-qn-field input[type="date"],
.jjj-qn-field select,
.jjj-qn-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.jjj-qn-field input:focus,
.jjj-qn-field select:focus,
.jjj-qn-field textarea:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.jjj-qn-field textarea {
  min-height: 72px;
  resize: vertical;
}

.jjj-qn-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.jjj-qn-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}

.jjj-qn-options input {
  accent-color: #1890ff;
}

.jjj-qn-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jjj-qn-subsection {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #e8e8e8;
}

.jjj-qn-subsection h4 {
  font-size: 14px;
  color: #1890ff;
  margin: 0 0 10px;
}

.jjj-qn-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.jjj-qn-btn {
  padding: 12px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.jjj-qn-btn-primary {
  background: linear-gradient(135deg, #23c1fa, #1890ff);
  color: #fff;
}

.jjj-qn-btn-secondary {
  background: #fff;
  color: rgba(0, 0, 0, 0.65);
  border: 1px solid #d9d9d9;
}

.jjj-qn-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.jjj-qn-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.jjj-qn-toast.success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
}

.jjj-qn-toast.error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
}

.jjj-qn-options.vertical {
  flex-direction: column;
  gap: 10px;
}

.jjj-qn-options.vertical label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
  font-size: 13px;
}

.jjj-qn-options.vertical input {
  margin-top: 4px;
  flex-shrink: 0;
}

.jjj-qn-applicable {
  font-size: 12px;
  color: #1890ff;
  background: #e6f7ff;
  border-left: 3px solid #1890ff;
  padding: 6px 10px;
  margin: 12px 0 8px;
  border-radius: 0 4px 4px 0;
}

.jjj-qn-applicable:first-of-type {
  margin-top: 0;
}

.jjj-qn-conditional {
  display: none;
}

.jjj-qn-conditional.visible {
  display: block;
}

@media (max-width: 960px) {
  .jjj-qn-banner,
  .jjj-qn-form-grid,
  .jjj-qn-row-2 {
    grid-template-columns: 1fr;
  }

  .jjj-qn-header .button-group {
    gap: 20px;
    padding: 0 16px;
  }

  .jjj-qn-header .title {
    font-size: 16px;
  }
}
