:root {
  --bg-top: #f5e0da;
  --bg-bottom: #ededf1;
  --text-main: #7f330f;
  --text-muted: #666666;
  --text-link: #ff5b4d;
  --card-bg: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 10px 28px rgba(160, 83, 54, 0.08);
  --line-soft: rgba(255, 255, 255, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg-bottom);
  color: var(--text-main);
}

body {
  display: flex;
  justify-content: center;
}

.page {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 104, 74, 0.92) 0, rgba(255, 104, 74, 0.65) 11%, rgba(255, 104, 74, 0.18) 28%, rgba(255, 104, 74, 0) 48%),
    radial-gradient(circle at 88% 6%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.2) 18%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, var(--bg-top) 0, #f5e8e6 33%, var(--bg-bottom) 62%);
}

.safe-top {
  height: 20px;
}

.page-inner {
  padding: 18px 36px 64px;
}

.back-button {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
}

.back-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 11px;
  height: 11px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1px;
}

.hero-wrap {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.hero-illustration {
  position: relative;
  width: 154px;
  height: 154px;
  filter: drop-shadow(0 14px 18px rgba(255, 126, 87, 0.18));
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-title {
  margin: 28px 0 0;
  text-align: center;
  font-size: 25px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.copy-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 30px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.brand-mark {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.copy-content {
  flex: 1;
  min-width: 0;
}

.copy-title {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-main);
}

.copy-status {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(127, 51, 15, 0.6);
}

.copy-button {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.copy-button::before,
.copy-button::after {
  content: "";
  position: absolute;
  border: 2px solid #8f3d18;
  border-radius: 3px;
  background: transparent;
}

.copy-button::before {
  top: 9px;
  left: 7px;
  width: 14px;
  height: 14px;
  opacity: 0.74;
}

.copy-button::after {
  top: 5px;
  left: 11px;
  width: 14px;
  height: 14px;
}

.tips {
  margin-top: 84px;
  font-size: 17px;
  line-height: 1.58;
  color: var(--text-muted);
}

.tips .highlight {
  color: var(--text-link);
}

.tips .highlight.block {
  display: inline-block;
}

.has-manual-copy-dialog {
  overflow: hidden;
}

.manual-copy-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 19, 13, 0.38);
}

.manual-copy-mask.is-visible {
  display: flex;
}

.manual-copy-dialog {
  width: 100%;
  max-width: 360px;
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(98, 49, 31, 0.18);
}

.manual-copy-title {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-main);
}

.manual-copy-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.manual-copy-input {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 61, 24, 0.16);
  border-radius: 12px;
  background: #fff8f5;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  user-select: text;
  -webkit-user-select: text;
}

.manual-copy-input:focus {
  outline: 2px solid rgba(255, 91, 77, 0.22);
  border-color: rgba(255, 91, 77, 0.36);
}

.manual-copy-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.manual-copy-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(143, 61, 24, 0.08);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.manual-copy-action.primary {
  background: linear-gradient(180deg, #ff7d69 0, #ff5b4d 100%);
  color: #ffffff;
}

@media (max-width: 390px) {
  .page-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-title {
    font-size: 23px;
  }

  .tips {
    font-size: 16px;
  }
}
