* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #222;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.home-page {
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at 88% 30%, rgba(255, 184, 206, 0.38), transparent 30%),
    #f3f3f3;
  background-attachment: fixed;
}

.home-shell {
  width: min(90vw, 900px);
  margin: 28px auto;
}

.home-card {
  min-height: 90vh;
  padding: clamp(28px, 8vw, 76px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 36px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.home-card h1 {
  margin: 0 0 34px;
  color: #e60000;
  font-size: clamp(36px, 8vw, 78px);
  line-height: 1.55;
  font-weight: 900;
  letter-spacing: 0;
}

.participants {
  margin: 0 0 42px;
  color: #c91515;
  font-size: clamp(18px, 3.6vw, 30px);
}

.strong-copy,
.red-copy,
.purple-copy,
.search-copy p {
  font-size: clamp(24px, 4.7vw, 44px);
  line-height: 1.75;
  font-weight: 900;
  letter-spacing: 0;
}

.strong-copy {
  margin: 0 0 46px;
  color: #050505;
}

.red-copy {
  margin: 0 0 34px;
  color: #e60000;
}

.purple-copy {
  margin: 0 0 42px;
  color: #9138ff;
}

.final-title {
  margin-top: 42px;
}

.search-copy {
  margin: 38px 0 54px;
}

.search-copy p {
  margin: 0 0 18px;
}

.red-inline {
  color: #e60000;
}

.image-placeholder {
  width: 100%;
  min-height: 280px;
  border: 3px dashed #b8b8b8;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.image-placeholder span {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 800;
}

.image-placeholder small {
  font-size: 16px;
}

.asset-frame {
  margin: 24px 0 54px;
}

.hero-image-frame {
  margin-top: 20px;
}

.hero-image-frame img {
  border-radius: 0;
}

.bookshelf-slot {
  aspect-ratio: 4 / 5;
}

.asset-frame figcaption,
.asset-frame .missing-placeholder {
  display: none;
}

.asset-frame.is-missing img {
  display: none;
}

.asset-frame.is-missing .missing-placeholder {
  display: flex;
}

.image-guide .missing-placeholder {
  display: none;
}

.image-guide.is-missing .tutorial-image {
  display: none;
}

.image-guide.is-missing .missing-placeholder {
  display: flex;
}

.upload-question {
  margin-top: 36px;
}

.upload-question h2 {
  margin: 0 0 28px;
  color: #222;
  font-size: clamp(24px, 4.5vw, 42px);
  line-height: 1.75;
  font-weight: 900;
}

.upload-question h2 span {
  color: #d9231f;
  margin-right: 12px;
}

.upload-zone {
  position: relative;
  display: flex;
  min-height: 220px;
  padding: 28px;
  border: 3px dashed #b8b8b8;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 78px;
  height: 58px;
  background: #3b82f6;
  clip-path: polygon(50% 0, 77% 38%, 61% 38%, 61% 66%, 39% 66%, 39% 38%, 23% 38%);
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

.upload-text {
  color: #111;
  font-size: clamp(24px, 4.8vw, 40px);
}

.status-wrap {
  text-align: center;
}

.upload-status {
  display: none;
  margin: 28px auto 24px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 800;
}

.upload-status.is-waiting,
.upload-status.is-ready {
  display: inline-block;
}

.upload-status.is-waiting {
  color: #a85d11;
  background: #fff8e7;
  border: 2px solid #ffc069;
}

.upload-status.is-ready {
  color: #12612c;
  background: #e0f7e4;
  border: 2px solid #6fcf97;
}

.submit-btn {
  width: 100%;
  min-height: 84px;
  border: 0;
  border-radius: 14px;
  background: #46ad4d;
  color: #fff;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(70, 173, 77, 0.22);
}

.submit-btn:disabled {
  background: #cfcfcf;
  color: rgba(255, 255, 255, 0.9);
  cursor: not-allowed;
  box-shadow: none;
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.result-page {
  background: #f7f6f2;
  padding: 18px 14px 38px;
}

.result-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-tip {
  min-height: 82px;
  padding: 14px 16px;
  border: 2px dashed #e60000;
  border-radius: 16px;
  background: #fff;
  color: #bb3030;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(230, 0, 0, 0.06);
}

.top-tip span {
  font-size: 24px;
}

.guide-card {
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.guide-card h1 {
  margin: 0 0 14px;
  color: #1a1a1a;
  font-size: 24px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-card h1 span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e60000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 12px rgba(230, 0, 0, 0.24);
  flex: 0 0 auto;
}

.guide-card p {
  margin: 0 0 10px;
  color: #3e3e3e;
  font-size: 16px;
}

.guide-card mark {
  margin-left: 4px;
  padding: 4px 12px;
  border: 1px solid #f2cbd2;
  border-radius: 999px;
  background: #fff7f8;
  color: #aa2636;
  font-weight: 800;
}

.muted {
  color: #777 !important;
}

.notice-box {
  margin: 14px 0;
  padding: 14px 14px;
  border-left: 5px solid #f2a766;
  border-radius: 0 12px 12px 0;
  background: #fff5ed;
  color: #765238;
  font-size: 15px;
  font-weight: 700;
}

.notice-box b,
.red {
  color: #e60000;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #edf9f5;
  color: #266655;
  font-weight: 700;
}

.badge-row em {
  padding: 4px 12px;
  border: 1px solid #b9e7d8;
  border-radius: 999px;
  font-style: normal;
  color: #16765c;
}

.center {
  text-align: center;
}

.copy-group {
  width: 100%;
  min-height: 72px;
  padding: 8px 8px 8px 18px;
  border: 2px dashed #e60000;
  border-radius: 14px;
  background: #fffafa;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.copy-group span {
  flex: 1;
  color: #c1121f;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
}

.copy-group strong {
  min-width: 112px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: #e60000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.copy-group.alt-group {
  border-color: #c99736;
  background: #fffdf8;
}

.copy-group.alt-group span {
  color: #7c552d;
  font-size: 21px;
}

.copy-group.alt-group strong {
  background: #c88a2e;
}

.hint {
  margin-top: 8px !important;
  padding: 10px 12px;
  border: 1px solid #d4ede2;
  border-radius: 10px;
  background: #f9fbf9;
  text-align: center;
}

.divider {
  margin: 18px 0 12px;
  border-top: 1px dashed #dedbd3;
}

.warning-bar {
  padding: 15px 16px;
  border-left: 5px solid #e60000;
  border-radius: 0 14px 14px 0;
  background: #fff9f9;
  color: #b53030;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
}

.warning-bar p {
  margin: 0;
}

.image-guide {
  padding: 18px 14px 14px;
  border: 2px solid #e60000;
  border-radius: 18px;
  background: #fff5f5;
  text-align: center;
  box-shadow: 0 6px 18px rgba(230, 0, 0, 0.1);
}

.image-guide h2 {
  margin: 0 0 14px;
  color: #e60000;
  font-size: 20px;
}

.tutorial-slot {
  min-height: 520px;
  border-color: #efb5b5;
  background: #fff;
}

.tutorial-image {
  width: 100%;
  border: 1px solid #f5c0c0;
  border-radius: 12px;
}

.image-guide p {
  margin: 12px 0 0;
  color: #999;
  font-size: 13px;
}

.copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  display: none;
  transform: translate(-50%, -50%);
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.88);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.copy-toast.show {
  display: block;
}

@media (max-width: 520px) {
  .home-shell {
    width: 90vw;
    margin: 18px auto;
  }

  .home-card {
    padding: 34px 28px;
    border-radius: 28px;
  }

  .strong-copy,
  .red-copy,
  .purple-copy,
  .search-copy p {
    line-height: 1.85;
  }

  .image-placeholder {
    min-height: 220px;
  }

  .bookshelf-slot {
    aspect-ratio: 9 / 14;
  }

  .upload-zone {
    min-height: 190px;
  }

  .submit-btn {
    min-height: 76px;
  }
}

@media (max-width: 380px) {
  .home-card {
    padding: 28px 22px;
  }

  .copy-group {
    padding-left: 12px;
  }

  .copy-group strong {
    min-width: 92px;
    font-size: 15px;
  }
}
