:root {
  --gold: #e9c98d;
  --gold-hi: #f9eed8;
  --gold-deep: #b98a44;
  --cream: #f4e8d0;
  --muted: rgba(244, 232, 208, .55);
  --line: rgba(233, 201, 141, .18);
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; background: #0b0715; color: var(--cream); font-family: var(--sans); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(112, 68, 172, .38), transparent 70%),
    radial-gradient(50% 36% at 100% 30%, rgba(233, 201, 141, .07), transparent 70%),
    radial-gradient(60% 40% at 0% 80%, rgba(72, 40, 124, .28), transparent 70%),
    linear-gradient(180deg, #0f0820 0%, #120a22 50%, #08050f 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(34px + env(safe-area-inset-top)) 22px calc(36px + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- 头部 */

.head { text-align: center; }

.mark {
  width: 62px;
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 0 18px rgba(233, 201, 141, .25));
  margin-bottom: 18px;
}

.kick {
  font-size: 11px;
  letter-spacing: .38em;
  color: rgba(233, 201, 141, .62);
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.42;
  letter-spacing: .06em;
  color: var(--gold-hi);
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f8ead0 10%, #e2b96f 52%, #f8ead0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 16px auto 0;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------- 表单 */

.panel {
  margin-top: 30px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}

.field { margin-bottom: 16px; position: relative; }

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(233, 201, 141, .66);
  margin-bottom: 9px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(233, 201, 141, .18);
  border-radius: 12px;
  background: rgba(8, 5, 15, .55);
  color: var(--cream);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}

.field textarea { resize: none; padding-right: 56px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 232, 208, .28); }

.field input:focus,
.field textarea:focus {
  border-color: rgba(233, 201, 141, .55);
  background: rgba(8, 5, 15, .75);
}

.meter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  color: rgba(244, 232, 208, .3);
  letter-spacing: .08em;
  pointer-events: none;
}

.meter.warn { color: #f0b9a0; }

.send {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #e8c88c 0%, #f6e3ba 46%, #cfa963 100%);
  color: #3a2607;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(233, 201, 141, .22), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transition: transform .12s, filter .2s, opacity .2s;
}

.send:active { transform: scale(.985); }
.send:disabled { opacity: .45; filter: saturate(.6); }

.send-ico { width: 19px; height: 19px; transform: translateY(-1px); }

.msg {
  min-height: 18px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  letter-spacing: .04em;
  color: #f0b9a0;
  opacity: 0;
  transition: opacity .2s;
}

.msg.on { opacity: 1; }
.msg.ok { color: #b7e4c7; }

/* ---------------------------------------------------------------- 最近 */

.recent { margin-top: 28px; }

.recent-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(244, 232, 208, .5);
  margin-bottom: 12px;
}

.recent-head b { color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(233, 201, 141, .45);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 201, 141, .45); }
  70% { box-shadow: 0 0 0 9px rgba(233, 201, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 201, 141, 0); }
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list li {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(233, 201, 141, .1);
  background: rgba(255, 255, 255, .028);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 232, 208, .68);
  animation: rise .45s cubic-bezier(.2, .8, .2, 1);
}

.list li b {
  display: inline-block;
  margin-right: 8px;
  color: rgba(233, 201, 141, .9);
  font-weight: 600;
}

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

.foot {
  margin-top: 34px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .34em;
  color: rgba(244, 232, 208, .22);
  line-height: 2;
}

.foot-2 { letter-spacing: .2em; }

/* ---------------------------------------------------------------- 起飞动画 */

.fly-layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }

.fly {
  position: absolute;
  width: 30px;
  height: 30px;
  color: #f7e8c8;
  filter: drop-shadow(0 0 10px rgba(233, 201, 141, .8));
  animation: takeoff 1.15s cubic-bezier(.3, .1, .4, 1) forwards;
}

.fly svg { width: 100%; height: 100%; }

@keyframes takeoff {
  0% { transform: translate(0, 0) rotate(-8deg) scale(.7); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translate(-38px, -34vh) rotate(-18deg) scale(1); }
  100% { transform: translate(22px, -82vh) rotate(-10deg) scale(.55); opacity: 0; }
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f8e9c9;
  box-shadow: 0 0 8px 2px rgba(233, 201, 141, .6);
  animation: spark .75s ease-out forwards;
}

@keyframes spark {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(0) translateY(-14px); opacity: 0; }
}

@media (max-height: 700px) {
  .wrap { padding-top: calc(20px + env(safe-area-inset-top)); }
  h1 { font-size: 28px; }
  .sub { margin-top: 10px; }
  .panel { margin-top: 20px; }
  .mark { width: 50px; margin-bottom: 12px; }
}
