.udid {
  padding-top: 100px;
  padding-bottom: 80px;
}

.udid_header {
  text-align: center;
  margin-bottom: 50px;
}

.udid_header h1 {
  font-size: 2.5em;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.udid_header p {
  font-size: 1.2em;
  color: #636e72;
  max-width: 680px;
  margin: 0 auto;
}

.udid_grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.udid_card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
  max-width: 520px;
}

.udid_card h3 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

.udid_qrcode {
  text-align: center;
}

.udid_qrcode img {
  width: 260px;
  height: 260px;
  border: 1px solid #dfe6e9;
  border-radius: var(--border-radius);
  padding: 10px;
  background: white;
}

.udid_qrcode .udid_tip {
  margin-top: 15px;
  color: #636e72;
}

.udid_steps {
  list-style: none;
  counter-reset: udid-step;
}

.udid_steps li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 16px;
  color: #4a5254;
  line-height: 1.7;
}

.udid_steps li::before {
  counter-increment: udid-step;
  content: counter(udid-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 0.85em;
  font-weight: 600;
}

.udid_btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.udid_btn:hover {
  background: var(--secondary-color);
}

.udid_btn.udid_btn-plain {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.udid_btn.udid_btn-plain:hover {
  background: var(--light-color);
}

.udid_status {
  margin-top: 18px;
  text-align: center;
  color: #636e72;
}

.udid_result {
  display: none;
}

.udid_result.active {
  display: block;
}

.udid_result_row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #eceff1;
  word-break: break-all;
}

.udid_result_row:last-child {
  border-bottom: none;
}

.udid_result_row .udid_label {
  width: 110px;
  flex-shrink: 0;
  color: #636e72;
}

.udid_result_row .udid_value {
  flex: 1;
  color: var(--dark-color);
  font-weight: 500;
  font-family: Consolas, Monaco, monospace;
}

.udid_copy {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.udid_notice {
  max-width: 900px;
  margin: 0 auto;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  border-radius: var(--border-radius);
  padding: 20px 24px;
  color: #7a5b12;
  line-height: 1.8;
}

.udid_notice h4 {
  margin-bottom: 8px;
}

.udid_notice ul {
  padding-left: 20px;
}

.udid_error {
  background: #ffeaea;
  border: 1px solid #ffbcbc;
  color: #c0392b;
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .udid {
    padding-top: 80px;
  }

  .udid_header h1 {
    font-size: 1.8em;
  }

  .udid_header p {
    font-size: 1em;
  }

  .udid_card {
    padding: 20px;
  }

  .udid_result_row {
    flex-direction: column;
    gap: 4px;
  }

  .udid_result_row .udid_label {
    width: auto;
  }
}
