.hero {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-content {
  width: min(900px, 100%);
  max-width: 900px;
  margin: 0 auto;
}

.hero-content > p { margin-left: auto; margin-right: auto; }
.search-shell { width: min(820px, 100%); margin: 34px auto 0; }
.popular { justify-content: center; flex-wrap: wrap; }
.popular .chip {
  border: 1px solid #d7d9dd;
  border-radius: 20px;
  background: #f7f6f2;
  padding: 5px 11px;
  color: #666f7e;
}
.hero-art { display: none; }
.download-client { height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; color: #2d6fdc; background: #edf4ff; text-decoration: none; font-size: 12px; font-weight: 850; }
.download-client:hover { background: #deebff; }

.search-dialog {
  width: min(1180px, 94vw);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
}
.search-dialog-inner { padding: 34px; max-height: 88vh; overflow-y: auto; }
.result-heading { padding-right: 50px; margin-bottom: 25px; }
.result-heading h2 { font-family: "Noto Serif SC", "Source Han Serif SC", Georgia, serif; font-size: 30px; margin: 6px 0; }
.result-heading p { color: #7b8493; margin: 0; }
.search-result-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.auth-dialog { width: min(430px, 92vw); padding: 0; }
.auth-dialog-inner { padding: 38px; display: grid; gap: 15px; }
.auth-dialog-inner h2 { margin: 0 0 8px; font-size: 27px; }
.auth-dialog-inner label { display: grid; gap: 7px; font-size: 12px; font-weight: 800; color: #5d687a; }
.auth-dialog-inner input { height: 44px; border: 1px solid #dce1e9; border-radius: 9px; padding: 0 12px; outline: none; }
.auth-dialog-inner input:focus { border-color: #3476e8; box-shadow: 0 0 0 3px #3476e81a; }
.graphic-captcha-field { gap: 8px !important; }
.graphic-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 126px 40px; gap: 8px; align-items: center; }
.auth-dialog-inner .graphic-captcha-row input { min-width: 0; }
.graphic-captcha-image { width: 126px; height: 40px; display: block; border: 1px solid #dce6f4; border-radius: 8px; background: #f7faff; }
.graphic-captcha-refresh { width: 40px; height: 40px; padding: 0; border: 1px solid #d5e2f5; border-radius: 9px; background: #f7faff; color: #2d70d5; font-size: 22px; line-height: 1; font-weight: 800; }
.graphic-captcha-refresh:hover { background: #eaf3ff; border-color: #9ec2f8; }
.auth-login-preferences{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 1px}
.auth-login-preferences label{display:inline-flex!important;align-items:center;gap:7px;color:#64728a!important;font-size:12px!important;font-weight:750!important}
.auth-login-preferences input{width:15px!important;height:15px!important;min-height:15px;padding:0!important;margin:0;accent-color:#2f6fec}
.auth-error { min-height: 18px; margin: 0; color: #d54f4f; font-size: 12px; text-align: center; }
.email-code-request { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.email-code-request .ghost { flex: 0 0 auto; }
.email-code-status { min-height: 18px; color: #62718a; font-size: 11px; font-weight: 700; line-height: 1.45; }
.auth-links { display: flex; justify-content: flex-end; }
.text-button { border: 0; background: transparent; color: #3476e8; padding: 0; font-size: 12px; font-weight: 800; }
.text-button:hover { color: #1d57b8; text-decoration: underline; }
.auth-tip { margin: 0; color: #7b8798; font-size: 12px; line-height: 1.6; }
.auth-dialog-inner button:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 650px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .search-dialog-inner { padding: 25px 18px; }
  .search-result-grid { grid-template-columns: 1fr; }
}
