:root {
  --ink: #3a2b2c;
  --ink-soft: #7d6868;
  --accent: #c1121f;
  --accent-dark: #8f0710;
  --card: rgba(255, 252, 251, 0.87);
}

* { box-sizing: border-box; }

html { background: #e8cfcf; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: clamp(20px, 4vw, 48px);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景：整张插画铺满屏幕，柔化处理当作氛围底图 */
.background {
  position: fixed;
  inset: -8%;
  z-index: 0;
  background: url("assets/background.jpg") center 24% / cover no-repeat;
  filter: blur(16px) saturate(1.03) brightness(1.05);
  transform: scale(1.04);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(115% 85% at 50% 8%, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(74, 30, 34, 0.10) 0%, rgba(74, 30, 34, 0.30) 100%);
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: clamp(26px, 4vw, 42px) clamp(20px, 4vw, 40px) clamp(22px, 3.4vw, 32px);
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 26px 60px -20px rgba(74, 24, 30, 0.50),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  text-align: center;
  animation: rise 0.75s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.portrait {
  width: clamp(128px, 30vw, 164px);
  aspect-ratio: 1 / 1;
  margin: 0 auto clamp(16px, 2.2vw, 22px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow:
    0 12px 28px -10px rgba(120, 24, 34, 0.55),
    0 0 0 1px rgba(193, 18, 31, 0.18);
  animation: float 7s ease-in-out infinite;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 4.6vw, 31px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.desc {
  margin: 0 auto;
  max-width: 35ch;
  font-size: clamp(14px, 2.2vw, 15.5px);
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(20px, 2.8vw, 26px);
  padding: 15px 30px;
  border-radius: 999px;
  font-size: clamp(15px, 2.4vw, 16.5px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #d81b2b, var(--accent) 55%, var(--accent-dark));
  box-shadow:
    0 16px 30px -14px rgba(150, 10, 22, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.38) inset;
  transition: transform 0.22s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 22px 38px -16px rgba(150, 10, 22, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.38) inset;
}

.btn:active { transform: translateY(0) scale(0.99); }

.btn:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.45);
  outline-offset: 3px;
}

.icon { width: 20px; height: 20px; flex: none; }

.meta {
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.meta-link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted rgba(125, 104, 104, 0.7);
  padding-bottom: 1px;
}

.meta-link:hover { color: var(--accent); border-bottom-color: rgba(193, 18, 31, 0.6); }

.dot { margin: 0 6px; opacity: 0.6; }

.footer {
  position: relative;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(74, 30, 34, 0.85);
  background: rgba(255, 252, 251, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 420px) {
  .card { border-radius: 24px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .portrait { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}