/* ===== Coop Page: Hero ===== */
.hero {
  padding-bottom: 46px;
  background-image: url('../img/coop/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  margin-top: 142px;
}
/* ===== Main Content ===== */
.main-content {
  padding: 24px 0 0;
}

.query-panel {
  flex: 1;
  min-width: 0;
  min-height: 502px;
  background: var(--color-bg-light);
  border: 1px solid #e5eeff;
  border-radius: 2px;
  overflow: hidden;
  scroll-margin-top: 24px;
}

.query-panel__header {
  background: url('../img/coop/card-header-bg.png') no-repeat center center;
  background-size: cover;
  height: 71px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.query-panel__header-text {
  padding: 0 25px;
}

.query-panel__title {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  color: #00264e;
}

.query-panel__desc {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: rgba(0, 38, 78, 0.49);
}

.query-panel__search {
  display: flex;
  align-items: center;
  width: 463px;
  height: 49px;
  margin: 118px auto 0;
  padding: 0 6px 0 23px;
  background: #ffffff;
  border: 2px solid #9fb8e7;
  border-radius: 23px;
}

.query-panel__search:focus-within {
  border-color: #9fb8e7;
  outline: none;
  box-shadow: none;
}

.query-panel__input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 17px;
  color: var(--color-text);
  border: none;
  outline: none;
  box-shadow: none;
}

.query-panel__input:focus,
.query-panel__input:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

.query-panel__input::placeholder {
  color: #a2a8b4;
}

.query-panel__btn {
  flex-shrink: 0;
  width: 85px;
  height: 36px;
  background: linear-gradient(140deg, #00b4ff 0%, #007dff 100%);
  border-radius: 79px;
  font-size: 14px;
  line-height: 36px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
}

.query-panel__hint {
  margin: 11px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: #9297a3;
  text-align: center;
}

.query-panel__result {
  width: 492px;
  margin: 20px auto 0;
}

.query-panel__result--empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  border: 1px dashed #d8e5ff;
  border-radius: 2px;
}

.query-panel__empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #9297a3;
  text-align: center;
}

.query-panel__result--with-download {
  width: 600px;
}

.query-panel__download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  height: 40px;
  margin: 16px auto 32px;
  padding: 0 20px;
  border: none;
  border-radius: 79px;
  background: linear-gradient(140deg, #00b4ff 0%, #007dff 100%);
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
}

.query-panel__download-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.query-panel__download-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.query-panel__download-text {
  line-height: 1;
}

.query-panel__download:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.query-panel__download[hidden] {
  display: none;
}

.query-panel__result-body {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 2px;
}

.query-panel__result-image {
  display: block;
  width: 100%;
  object-fit: contain;
}

.query-panel__result-meta {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.query-panel__result-seal {
  position: absolute;
  right: 100px;
  top: 500px;
  width: 120px;
  height: auto;
  pointer-events: none;
}

.query-panel__result-seal[hidden] {
  display: none;
}

.query-panel__meta-item {
  position: absolute;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #1f2a44;
  max-width: 42%;
  word-break: break-all;
  white-space: normal;
}

.query-panel__meta-label {
  color: #5a6478;
}

.query-panel__meta-value {
  color: #232323;
  font-weight: 600;
}

/* 占位定位：相对 query-panel__result-body，后续可按设计稿微调 top/left */
.query-panel__meta-item--code {
  top: 371px;
  left: 253px;
  font-size: 16px;
  font-weight: bold;
}

.query-panel__meta-item--game-name {
  top: 411px;
  left: 260px;
  font-size: 15px;
  font-weight: bold;
}

.query-panel__meta-item--game-url {
  top: 438px;
  left: 260px;
  font-size: 15px;
  font-weight: bold;
}

.query-panel__meta-item--category-name {
  top: 465px;
  left: 260px;
  font-size: 15px;
  font-weight: bold;
}

.query-panel__meta-item--valid-period {
  top: 492px;
  left: 260px;
  font-size: 15px;
  font-weight: bold;
}

.query-panel__meta-item--issue-date {
  top: 559px;
  left: 440px;
  font-size: 15px;
  font-weight: bold;
}

.query-panel__meta-item--verify-count {
  top: 518px;
  left: 260px;
  font-size: 15px;
  font-weight: bold;
}

.query-panel__result[hidden] {
  display: none;
}
