/* egift 登录：提问箱居中卡 + 档案馆深蓝 / 橙色 */

.page-home {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 0;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  background: var(--paper, #f5f1e8);
  --archive-navy: #1a2744;
  --archive-navy-2: #243556;
  --archive-orange: #e07a3a;
  --archive-orange-deep: #c45f24;
  --archive-cream: #f3ebe0;
}

.page-home .home-bg {
  background:
    radial-gradient(820px 440px at 18% -8%, rgba(224, 122, 58, 0.18), transparent 58%),
    radial-gradient(640px 420px at 88% 88%, rgba(26, 39, 68, 0.08), transparent 55%),
    linear-gradient(165deg, #f9eee3 0%, #f5f1e8 52%, #efe6d8 100%);
}

.page-home .home-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  animation: home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .site-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-bottom: 1rem;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-head {
  text-align: center;
  padding: 0 6px;
}

.home-logo {
  margin: 0;
  font-family: "KingHwa Old Song", "Songti SC", serif;
  font-size: clamp(1.45rem, 6.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink, #23232b);
  white-space: nowrap;
}

.home-title {
  margin: 16px 0 0;
  font-family: var(--font-ui), "MiSans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft, #3d3934);
}

.home-desc {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #5c5349);
  opacity: 0.85;
}

/* 提问箱式登录卡：档案馆深蓝 */
.home-box {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 22px 20px;
  border-radius: 12px;
  border: 1px solid rgba(243, 235, 224, 0.12);
  background:
    linear-gradient(165deg, var(--archive-navy-2) 0%, var(--archive-navy) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 40px rgba(26, 39, 68, 0.28);
}

.home-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 0;
}

.home-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.home-field span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(243, 235, 224, 0.78);
  text-transform: none;
}

.home-field input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 42px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(243, 235, 224, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink, #23232b);
  font: inherit;
  padding: 0 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-field input:focus {
  outline: none;
  border-color: rgba(224, 122, 58, 0.85);
  box-shadow: 0 0 0 3px rgba(224, 122, 58, 0.28);
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
}

.home-actions-extra {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 235, 224, 0.12);
}

.home-hint {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(243, 235, 224, 0.62);
  opacity: 1;
}

.page-home .home-btn,
.page-home a.home-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
}

/* 主按钮：档案馆橙 */
.page-home .home-btn:not(.home-btn-secondary),
.page-home button.home-btn {
  background: linear-gradient(180deg, var(--archive-orange), var(--archive-orange-deep));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(196, 95, 36, 0.35);
}

.page-home .home-btn:not(.home-btn-secondary):hover,
.page-home button.home-btn:hover {
  filter: brightness(1.05);
}

/* 次按钮：浅蓝底 + 近白字 */
.page-home .home-btn-secondary,
.page-home a.home-btn-secondary {
  background: rgba(122, 148, 196, 0.55);
  color: #f8f6f2;
  border: 1px solid rgba(186, 206, 235, 0.45);
  box-shadow: none;
}

.page-home .home-btn-secondary:hover,
.page-home a.home-btn-secondary:hover {
  filter: none;
  color: #fff;
  border-color: rgba(224, 122, 58, 0.45);
  background: rgba(122, 148, 196, 0.72);
}

.page-home .home-msg {
  min-height: 0;
  margin: 0;
  text-align: center;
  color: rgba(243, 235, 224, 0.72);
  font-size: 0.86rem;
}

.page-home .home-msg:empty {
  display: none;
}

.page-home .home-msg:not(:empty) {
  margin-top: 12px;
}

@media (max-width: 480px) {
  .page-home {
    align-items: flex-start;
    padding-top: 56px;
  }

  .home-box {
    padding: 20px 16px 16px;
  }
}
