:root {
  --bg: #FBF6EE;
  --card: #F5ECDD;
  --ink: #4A3530;
  --ink2: #8C7A70;
  --gold: #F2C14E;
  --blush: #F6C9C9;
  --line: rgba(74, 53, 48, 0.12);
  --hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", "Kaiti SC", "STKaiti", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: radial-gradient(90% 70% at 30% 20%, #FFFBF3 0%, var(--bg) 60%, #F7EEE2 100%) fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

/* 四角星装饰 */
.spark {
  position: fixed; z-index: 0; pointer-events: none; background: var(--gold); opacity: .45;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.6s ease-in-out infinite;
}
.s1 { width: 34px; height: 34px; top: 6%; left: 34%; }
.s2 { width: 22px; height: 22px; top: 18%; right: 8%; animation-delay: .8s; }
.s3 { width: 26px; height: 26px; top: 58%; left: 4%; animation-delay: 1.6s; }
.s4 { width: 40px; height: 40px; bottom: 10%; right: 5%; animation-delay: 2.2s; }
.s5 { width: 16px; height: 16px; top: 40%; right: 46%; animation-delay: 1.2s; }
@keyframes twinkle { 0%,100% { transform: scale(.7); opacity: .25; } 50% { transform: scale(1.05); opacity: .6; } }

main, .foot { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: max(48px, env(safe-area-inset-top)) 0 24px; }
.wordmark {
  margin: 0; font-size: clamp(56px, 9vw, 104px); font-weight: 900; line-height: 1;
  letter-spacing: -.01em; color: var(--ink);
}
.o-star { position: relative; display: inline-block; }
.o-star::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .32em; height: .32em; transform: translate(-50%, -50%);
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.tagline { margin: 22px 0 6px; font-size: 15px; letter-spacing: .22em; line-height: 1.6; }
.tagline-cn { margin: 0; font-size: 14px; letter-spacing: .3em; color: var(--ink2); }
.intro { margin: 28px 0 22px; font-size: 17px; max-width: 26em; }
.intro b { font-weight: 700; background: linear-gradient(transparent 62%, rgba(242, 193, 78, .35) 0); }
.traits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.traits li {
  font-size: 13px; letter-spacing: .1em; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
}

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: min(88%, 420px); filter: drop-shadow(0 24px 30px rgba(120, 90, 70, .16)); }
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

.hand { font-family: var(--hand); color: var(--ink); }
.hello { position: absolute; left: 0; bottom: 8%; margin: 0; font-size: 26px; line-height: 1.3; transform: rotate(-8deg); }

/* 卡片区块 */
.panel {
  position: relative; margin: 28px 0; padding: 26px 28px 30px;
  background: rgba(245, 236, 221, .6); border-radius: 28px;
}
.panel h2 { margin: 0 0 18px; font-size: 14px; letter-spacing: .2em; font-weight: 800; }
.panel h2 span { font-weight: 400; color: var(--ink2); letter-spacing: .1em; margin-left: 6px; }

.turn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.turn figure { margin: 0; text-align: center; }
.turn img { height: 220px; width: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(120, 90, 70, .12)); }
.turn figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .16em; color: var(--ink2); }
.note { position: absolute; top: 20px; right: 28px; margin: 0; font-size: 16px; line-height: 1.4; transform: rotate(-4deg); text-align: right; }

.profile { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.profile div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.profile dt { flex: 0 0 4.5em; font-weight: 700; }
.profile dd { margin: 0; color: var(--ink2); }

/* 价值 */
.values {
  list-style: none; margin: 36px auto 0; padding: 14px 10px; max-width: 680px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.75); border-radius: 999px; box-shadow: 0 6px 20px rgba(120, 90, 70, .06);
}
.values li { text-align: center; font-size: 14px; letter-spacing: .1em; }
.values li + li { border-left: 1px solid var(--line); }
.values i { font-style: normal; color: var(--gold); margin-right: 6px; font-size: 18px; }

.closing { text-align: center; font-family: var(--hand); font-size: 20px; margin: 32px 0 6px; }
.entry { text-align: center; margin: 0; }
.entry a { color: var(--ink2); font-size: 14px; text-underline-offset: 4px; }
.entry a:hover { color: var(--ink); }

.foot { text-align: center; font-size: 12px; color: var(--ink2); padding-top: 36px; padding-bottom: max(24px, env(safe-area-inset-bottom)); opacity: .8; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; gap: 8px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(64vw, 260px); }
  .hello { font-size: 20px; left: 4%; }
  .intro { margin-left: auto; margin-right: auto; }
  .traits { justify-content: center; }
  .panel { padding: 22px 18px 24px; }
  .note { position: static; transform: none; text-align: center; margin-top: 16px; }
  .turn { gap: 8px; }
  .turn img { height: 120px; }
  .turn figcaption { font-size: 11px; letter-spacing: .06em; }
  .profile { grid-template-columns: 1fr; gap: 0; }
  .values { grid-template-columns: repeat(2, 1fr); border-radius: 24px; row-gap: 10px; }
  .values li:nth-child(3) { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .float, .spark { animation: none; }
}
