:root {
  --deep: #092c20;
  --green: #32b878;
  --green-2: #76c9a3;
  --mint: #eefaf4;
  --pink: #d987a0;
  --pink-soft: #fff2f6;
  --text: #173a2f;
  --muted: #8e6876;
  --line: #ccebdd;
  --shadow: 0 10px 26px rgba(31, 94, 69, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #edf9f3; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 12% 8%, #fff 0, transparent 31%), linear-gradient(180deg, #f5fcf8 0, #eef9f4 100%);
  -webkit-tap-highlight-color: transparent;
}
body.detail-page { background: radial-gradient(circle at 50% 0, #ffdbe6 0, transparent 38%), #fff4f7; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.shell { width: min(100%, 480px); margin: 0 auto; padding: 10px 14px 110px; }
.notice {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin-bottom: 12px;
  padding: 12px 18px;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(9, 44, 32, .24);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 14px;
  padding: 8px 17px;
  border: 1.5px solid #ebc4d3;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #2cad72;
  font-size: 13px;
  font-weight: 700;
}
.card {
  padding: 20px;
  background: rgba(255,255,255,.96);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero { display: grid; grid-template-columns: 1fr 172px; gap: 14px; align-items: stretch; }
.eyebrow { display: inline-block; padding: 5px 10px; border: 1px solid #8ed8b6; border-radius: 999px; color: #219866; font-size: 12px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 10px 0 5px; font-size: 32px; line-height: 1.2; }
h2 { margin-bottom: 12px; font-size: 21px; }
.muted { color: var(--muted); }
.primary, .ghost, .copy-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.primary { padding: 10px 20px; border: 0; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 8px 18px rgba(50,184,120,.24); }
.primary:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.ghost { padding: 9px 18px; border: 2px solid #7acda6; color: #23a26a; background: #fff; }
.hot-panel { padding: 14px; border-radius: 18px; background: var(--deep); color: #fff; }
.hot-title { margin-bottom: 10px; font-size: 14px; font-weight: 800; }
.hot-item { display: flex; gap: 8px; align-items: center; padding: 8px; background: rgba(255,255,255,.08); border-radius: 12px; font-size: 12px; }
.hot-item img { width: 30px; height: 30px; border-radius: 8px; }
.search-block { margin-top: 18px; }
.search-row { display: flex; gap: 8px; }
.search-row input { min-width: 0; flex: 1; padding: 12px 16px; border: 2px solid #f2d9e1; border-radius: 999px; outline: none; background: #fff; }
.search-row input:focus { border-color: #75c9a3; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 18px; padding-bottom: 3px; }
.chip { flex: 0 0 auto; padding: 8px 14px; border: 1px solid #9cdaba; border-radius: 999px; background: #fff; color: #269966; }
.chip.active { color: #fff; background: linear-gradient(135deg, #34b678, #73c9a2); }
.section-title { display: flex; gap: 8px; align-items: baseline; margin: 14px 0 10px; }
.section-title h2 { margin: 0; }
.resource-card { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 13px; }
.resource-card img, .resource-summary img { width: 66px; height: 66px; border-radius: 17px; }
.resource-info { min-width: 0; flex: 1; }
.resource-name { font-weight: 900; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
.tag { padding: 2px 7px; border-radius: 999px; color: #269966; background: #eaf9f1; font-size: 11px; }
.rating { color: #e6a21c; font-size: 12px; font-weight: 800; }
.resource-summary { padding: 18px 16px; border: 3px solid transparent; border-radius: 22px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#d4788f,#f4b8cc,#f0a0b8,#d4788f) border-box; box-shadow: 0 16px 36px rgba(114,40,70,.17), 0 4px 10px rgba(31,13,26,.05); }
.resource-summary-head { display: flex; gap: 12px; align-items: center; }
.resource-summary p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }
.resource-summary h2 { margin: 0; font-size: 21px; font-weight: 800; }
.task-intro { margin-top: 20px; padding: 16px; border: 3px solid transparent; border-radius: 20px; background: linear-gradient(#fff7f8,#fff7f8) padding-box, linear-gradient(135deg,#e5484d,#f0a0b8,#e5484d) border-box; box-shadow: 0 14px 32px rgba(114,40,70,.14), 0 4px 10px rgba(229,72,77,.10); text-align: center; }
.task-intro h2 { margin-bottom: 5px; color: #c22633; font-size: 17px; font-weight: 800; line-height: 1.55; }
.task-intro p { margin: 5px 0 0; color: #7a4a58; font-size: 12.5px; line-height: 1.7; }
.step { position: relative; margin-top: 28px; padding: 23px 16px 20px; border: 3px solid transparent; border-radius: 24px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#38ae78,#b8cdbf,#f0a0b8,#e98da9,#38ae78) border-box; box-shadow: 0 20px 42px rgba(114,40,70,.21), 0 5px 12px rgba(31,13,26,.06); }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 16.5px; line-height: 1.45; }
.step-label { display: inline-block; flex: none; padding: 4px 12px; border: 1px solid #f4cdd9; border-radius: 999px; background: #fdeef3; color: #d4788f; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.platforms { display: flex; justify-content: center; gap: 26px; margin: 8px 0 2px; text-align: center; }
.platform { display: flex; flex-direction: column; gap: 7px; align-items: center; padding: 0; border-radius: 0; background: none; font-weight: 700; }
.platform-icon { display: block; width: 64px; height: 64px; border-radius: 16px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.copy-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px; border: 1.5px solid #f0d3dd; border-radius: 16px; background: #fffafc; box-shadow: 0 5px 14px rgba(114,40,70,.07); }
.copy-box small { display: block; color: #8a6575; font-size: 11px; font-weight: 800; line-height: 1.4; }
.copy-box textarea { width: 100%; min-height: 34px; height: 54px; padding: 8px; resize: none; overflow: hidden; border: 1.5px solid #e9dde1; border-radius: 11px; outline: 0; background: #f7f5f6; color: #4a3540; font-size: 12px; line-height: 1.5; }
.copy-btn { width: 100%; min-height: 31px; margin-top: auto; padding: 7px 2px; border: 1.5px solid #69c59a; color: #229a65; background: #fff; font-size: 11px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.step-text { margin-top: 10px; padding: 10px 12px; border: 1.5px solid #f3d9e1; border-radius: 14px; background: #fff8fa; color: #5c4350; font-size: 14px; line-height: 1.75; text-align: center; }
.step > .primary.full { margin: 10px 0 4px; padding: 15px 20px; font-size: 17px; background: linear-gradient(135deg,#4c9d78,#aacdb8); box-shadow: 0 8px 20px rgba(76,157,120,.38); }
.submit-title { margin-bottom: 16px; }
.upload-zone { display: block; padding: 30px 16px; border: 2px dashed #85cfad; border-radius: 20px; background: #fffafd; text-align: center; cursor: pointer; }
.upload-zone input { display: block; max-width: 100%; margin: 14px auto 0; }
.upload-icon { font-size: 36px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.preview-grid img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.count { margin: 16px 0; text-align: center; font-weight: 800; }
.rules { margin: 12px 0; padding: 14px 16px 14px 34px; border: 1px solid #efbdca; border-radius: 14px; background: #fff3f6; color: #c04463; font-size: 13px; line-height: 1.8; }
.full { width: 100%; }
.review-box, .success-box, .claim-box { padding: 28px 20px; border: 2px solid #bce9d3; border-radius: 20px; background: #effbf5; }
.review-box { text-align: center; }
.spinner { width: 46px; height: 46px; margin: 0 auto 18px; border: 4px solid #d7f0e4; border-top-color: #31b77a; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.uuid { overflow-wrap: anywhere; font-weight: 900; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.claim-box p { font-size: 18px; line-height: 1.8; }
.site-footer { margin: 38px 0 0; color: #78a892; text-align: center; font-size: 13px; }
.toolbox { position: fixed; right: max(18px, calc((100vw - 480px) / 2 + 18px)); bottom: 24px; z-index: 30; }
.toolbox-main { width: 58px; height: 58px; border: 0; border-radius: 50%; background: #377fd8; color: #fff; box-shadow: 0 10px 24px rgba(55,127,216,.3); font-size: 25px; cursor: pointer; }
.toolbox-menu { position: absolute; right: 0; bottom: 68px; width: 150px; padding: 8px; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.toolbox-menu a, .toolbox-menu button { display: block; width: 100%; padding: 10px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.toast { position: fixed; top: 12px; left: 50%; z-index: 50; width: min(calc(100% - 32px), 468px); padding: 11px 16px; transform: translateX(-50%); border-radius: 999px; background: var(--deep); color: #fff; text-align: center; box-shadow: var(--shadow); font-size: 13px; }
.empty { padding: 24px; color: var(--muted); text-align: center; }

@media (max-width: 390px) {
  .shell { padding-inline: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hot-panel { display: none; }
  h1 { font-size: 28px; }
  .copy-grid { grid-template-columns: 1fr; }
  .resource-card .primary { padding-inline: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
