:root {
  --orange: #f97316;
  --orange-deep: #f46a0f;
  --orange-dark: #e75e09;
  --panel-white: rgba(255, 255, 255, 0.965);
  --line: #f1f1f1;
  --text: #2b2b2b;
  --muted: #98a2b3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
}

.login-body,
.result-body,
.guide-body {
  background:
    linear-gradient(135deg, rgba(255, 183, 0, 0.92) 0, rgba(255, 183, 0, 0.92) 56px, transparent 56px) top right/228px 228px no-repeat,
    linear-gradient(225deg, rgba(93, 167, 233, 0.82) 0, rgba(93, 167, 233, 0.82) 140px, transparent 140px) bottom left/340px 340px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url('https://gdhfi.com/home/img/bg10.jpg') center center / cover no-repeat fixed;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.page-login {
  justify-content: flex-end;
}

.login-card {
  width: min(460px, 100%);
  min-height: 620px;
  border-radius: 8px;
  padding: 56px 54px 44px;
  margin-right: min(5vw, 72px);
  background: var(--panel-white);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 76px;
  margin-bottom: 18px;
}

.login-title {
  margin: 0 0 46px;
  font-size: 18px;
  font-weight: 700;
}

.query-form {
  width: 100%;
}

.pill-field {
  display: flex;
  align-items: center;
  height: 52px;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  margin-bottom: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pill-field:focus-within {
  border-color: #f8b27f;
  box-shadow: 0 0 0 3px rgba(244, 106, 15, 0.1);
}

.field-label {
  flex: 0 0 78px;
  color: #9aa0a6;
  font-size: 15px;
}

.pill-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.captcha-box {
  border: 0;
  width: 100px;
  height: 32px;
  border-radius: 4px;
  margin-left: 10px;
  background:
    linear-gradient(130deg, rgba(145, 180, 204, 0.35) 0 3%, transparent 3% 12%, rgba(145, 180, 204, 0.28) 12% 14%, transparent 14% 100%),
    linear-gradient(70deg, transparent 0 44%, rgba(145, 180, 204, 0.32) 44% 46%, transparent 46% 100%),
    linear-gradient(180deg, #f8fcff 0%, #edf5fb 100%);
  color: #435d70;
  letter-spacing: 6px;
  font-size: 23px;
  font-family: Georgia, serif;
  font-style: italic;
  cursor: pointer;
}

.primary-btn,
.secondary-btn,
.download-btn,
.ghost-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.query-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7a19 0%, var(--orange-deep) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(244, 106, 15, 0.24);
}

.form-message {
  min-height: 24px;
  margin: 12px 4px 0;
  color: #ef4444;
  font-size: 14px;
}

.result-panel,
.guide-card {
  width: min(1080px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.975);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.result-header {
  background: var(--orange-deep);
  color: #fff;
  padding: 26px 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.result-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 34px 36px;
  border-bottom: 1px solid var(--line);
}

.result-info-item {
  font-size: 16px;
  font-weight: 700;
}

.result-info-item span {
  color: #666;
  margin-right: 6px;
  font-weight: 500;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 42px 36px 28px;
  border-bottom: 1px solid var(--line);
}

.score-item {
  text-align: center;
}

.score-value {
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 800;
}

.score-label {
  color: var(--muted);
  font-size: 15px;
}

.admission-strip {
  margin: 24px 36px 0;
  padding: 18px 24px;
  border-radius: 12px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admission-title {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.admission-title strong {
  color: var(--orange-deep);
}

.admission-actions,
.guide-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-btn,
.download-btn,
.ghost-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.secondary-btn {
  background: #fff;
  color: var(--orange-dark);
  border: 1px solid #fdba74;
}

.download-btn {
  background: var(--orange-deep);
  color: #fff;
  border: 1px solid transparent;
}

.ghost-btn {
  background: #fff;
  color: var(--orange-deep);
  border: 1px solid #fdba74;
}

.result-note {
  padding: 22px 46px 36px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.8;
}

.inline-guide-link {
  color: var(--orange-deep);
  font-weight: 700;
  text-decoration: none;
}

.inline-guide-link:hover {
  text-decoration: underline;
}

.result-actions {
  padding: 0 46px 40px;
}

.guide-card {
  max-width: 860px;
  padding: 44px;
  border-radius: 18px;
}

.guide-card h1 {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--orange-deep);
}

.guide-card p,
.guide-card li {
  line-height: 1.8;
  font-size: 16px;
}

.guide-card ul {
  margin: 0 0 28px;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 18px;
  }

  .page-login {
    justify-content: center;
  }

  .login-card {
    min-height: auto;
    margin-right: 0;
    padding: 40px 24px 30px;
  }

  .result-info-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .admission-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .admission-title {
    text-align: left;
  }

  .guide-card {
    padding: 28px 20px;
  }
}
