:root {
  color-scheme: light;
  font-family: 'Segoe UI','Microsoft YaHei',system-ui,sans-serif;
  --paper: #fff8ef;
  --ink: #33232b;
  --muted: #735c63;
  --plum: #64374a;
  --clay: #a7503b;
  --edge: #e8d5ca;
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 90% 0,#f7e2e2,transparent 34rem),radial-gradient(ellipse at 0 39%,#fbe6d1,transparent 37rem),var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
p, h1, h2 { margin: 0; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a55870; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1190px,calc(100% - 72px)); margin-inline: auto; }
.header { display: flex; min-height: 79px; align-items: center; justify-content: space-between; gap: 15px; }
.header-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 27px/.88 Georgia,serif; letter-spacing: -.055em; }
.brand img { box-shadow: 0 4px 14px #763f503a; border-radius: 11px; }
.header nav { display: flex; align-items: center; gap: clamp(14px,3vw,38px); font-size: 13px; color: var(--muted); font-weight: 650; }
.header nav a:hover, .footer a:hover { color: var(--clay); }
.language, .country { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px 5px 12px; border: 1px solid var(--edge); border-radius: 999px; background: #fffaf4; color: var(--plum); font-weight: 700; }
.language select, .country select { appearance: none; max-width: 100%; padding: 3px 2px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 620; }
.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  min-height: 425px; padding: clamp(30px,4.7vw,64px);
  border: 1px solid #efd3c0; border-radius: 34px; overflow: hidden;
  background: radial-gradient(ellipse at 78% 29%,#e8b79c 0%,#f7d6bd 38%,transparent 62%),linear-gradient(120deg,#fff1df,#f8e0d6);
  box-shadow: 0 16px 52px #90594717;
}
.hero::before { content: ''; position: absolute; z-index: -1; width: 57%; aspect-ratio: 1; right: -8%; top: -42%; border: 1px solid #fff7e4; border-radius: 50%; box-shadow: 0 0 0 32px #fff5e738,0 0 0 67px #fff5e738; }
.hero-content { position: relative; z-index: 2; }
.tag, .overline { color: #8a4d4b; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #ecc4b0; background: #fff8efac; border-radius: 999px; }
.tag i, .chat-mode > span:first-child { width: 6px; height: 6px; background: #a7594c; border-radius: 50%; }
.hero h1 { margin-top: 18px; font: 500 clamp(39px,5.4vw,76px)/.99 Georgia,'Microsoft YaHei',serif; letter-spacing: -.066em; text-wrap: balance; }
html:lang(zh) .hero h1, html:lang(ja) .hero h1, html:lang(ko) .hero h1 { font-size: clamp(33px,4.7vw,65px); line-height: 1.13; font-weight: 750; }
.hero h1 em { color: var(--clay); font-weight: inherit; }
html:lang(zh) .hero h1 em, html:lang(ja) .hero h1 em, html:lang(ko) .hero h1 em { font-style: normal; }
.hero-text { max-width: 385px; margin: 20px 0 24px; color: #60454d; font-size: clamp(13px,1.35vw,16px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 12px; font-weight: 720; font-size: 13px; }
.primary { color: #fff9f1; background: linear-gradient(125deg,#a85341,#773c50); box-shadow: 0 5px 12px #8b43552d; }
.primary:hover { background: linear-gradient(125deg,#934735,#643047); }
.primary:disabled { opacity: .52; cursor: wait; }
.download-app { min-height: 36px; padding: 6px 11px; white-space: nowrap; }
.tiny { color: var(--muted); font-size: 11px; }
.hero-art { position: relative; min-width: 0; height: clamp(240px,29vw,330px); --portrait-width: clamp(105px,14vw,170px); --portrait-gap: 12px; }
.hero-viewport { position: absolute; inset: 0 0 21px; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
.hero-track { display: flex; width: max-content; height: 100%; animation: portrait-loop var(--loop-duration,116s) linear infinite; }
.hero-strip { display: flex; align-items: center; flex-shrink: 0; gap: var(--portrait-gap); padding-right: var(--portrait-gap); }
.hero-portrait { flex: 0 0 var(--portrait-width); width: var(--portrait-width); height: 87%; overflow: hidden; border: 4px solid #fff5e8; border-radius: 40% 40% 16px 16px; box-shadow: 0 13px 22px #502c3749; background: #e8c0a6; transform: translateY(-5px) rotate(-5deg); }
.hero-portrait:nth-child(3n+2) { transform: translateY(7px) rotate(5deg); }
.hero-portrait:nth-child(3n) { transform: translateY(-3px) rotate(-2deg); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
@keyframes portrait-loop { to { transform: translate3d(-50%,0,0); } }
.hero-stamp { position: absolute; z-index: 4; right: 0; bottom: 2%; display: grid; place-content: center; width: 70px; aspect-ratio: 1; border: 1px solid #e4ac91; border-radius: 50%; background: #fff1df; color: var(--plum); font: 800 9px/1 'Segoe UI',sans-serif; text-align: center; letter-spacing: .16em; transform: rotate(11deg); box-shadow: 0 5px 12px #4c223525; }
.hero-stamp img { margin: 0 auto 4px; }
.people { padding-block: clamp(35px,5vw,62px); scroll-margin-top: 20px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 7px 0 17px; }
.section-title h2 { font: 600 clamp(28px,3.2vw,43px)/1.08 Georgia,'Microsoft YaHei',serif; letter-spacing: -.035em; }
.section-title p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.counter { flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--edge); border-radius: 999px; background: #fffaf3; color: var(--plum); font-size: 11px; font-weight: 750; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 18px; }
.segments { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--edge); border-radius: 15px; background: #f9e8dd; }
.segments button { min-height: 34px; padding: 5px 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; }
.segments button[aria-pressed=true] { background: #fffaf5; border-color: #e9d2c8; color: var(--plum); box-shadow: 0 1px 5px #72413815; }
.cards { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(10px,1.7vw,19px); }
.person { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; text-align: left; color: var(--ink); border: 1px solid var(--edge); border-radius: 18px; background: #fffaf4; box-shadow: 0 5px 18px #926b5413; transition: transform .2s, box-shadow .2s, border-color .2s; }
.person:hover { transform: translateY(-4px); box-shadow: 0 12px 23px #926b5436; border-color: #d9aa9a; }
.person-photo { position: relative; width: 100%; aspect-ratio: 1 / 1.15; overflow: hidden; background: #eacdbf; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; transition: transform .3s; }
.person:hover img { transform: scale(1.05); }
.location { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 4px 7px; border: 1px solid #fff5ebbf; border-radius: 99px; background: #fff7ecea; color: #432e37; font-size: 10px; font-weight: 740; }
.person-copy { width: 100%; padding: 11px 12px 10px; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.person-name { display: flex; gap: 7px; align-items: baseline; font: 650 clamp(20px,2.3vw,27px)/1 Georgia,serif; }
.person-name small { font: 600 12px 'Segoe UI',sans-serif; color: var(--muted); }
.person-labels { margin: 2px 0 6px; color: var(--muted); font-size: 11px; }
.person-action { margin-top: auto; padding-top: 7px; border-top: 1px solid #efded4; color: #863f40; font-size: 11px; font-weight: 750; }
.empty { padding: 24px; border: 1px dashed var(--edge); border-radius: 16px; color: var(--muted); }
.footer { padding-bottom: 22px; color: var(--muted); font-size: 12px; }
.footer-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 18px 32px; padding: clamp(16px,3vw,29px); border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(120deg,#fae7dc,#fff3e9); }
.footer-brand .brand { color: var(--ink); width: fit-content; }
.footer-brand p { max-width: 350px; margin-top: 11px; line-height: 1.65; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; }
.footer-nav h2 { flex-basis: 100%; margin-bottom: 4px; color: var(--plum); font-size: 14px; }
.footer-nav button, .info-close { min-height: 38px; padding: 5px 10px; border: 1px solid #e3c7be; border-radius: 10px; background: #fff9f3; color: var(--plum); font-size: 12px; font-weight: 700; }
.footer-nav button:hover, .info-close:hover { background: #f5ded6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 11px; }
.site-info { width: min(470px,calc(100% - 28px)); }
.info-head { display: flex; align-items: center; gap: 9px; padding: 16px; border-bottom: 1px solid var(--edge); background: #fae6de; }
.info-head h2 { flex: 1; color: var(--plum); font-size: 18px; }
#info-text { padding: 19px 17px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.app-store { width: min(345px,calc(100% - 28px)); text-align: center; }
.app-store[open] { align-items: center; gap: 15px; padding: 24px 17px 18px; }
.app-store h2 { color: var(--plum); font-size: 17px; line-height: 1.4; }
.store-progress { position: relative; display: grid; place-items: center; width: 92px; height: 92px; }
.store-progress svg { position: absolute; inset: 0; width: 100%; transform: rotate(-90deg); stroke-width: 6; }
.store-progress-track { stroke: #ebd6cd; }
.store-progress-fill { stroke: var(--clay); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.app-store[open] .store-progress-fill { animation: store-progress var(--store-delay) linear both; }
@keyframes store-progress { to { stroke-dashoffset: 0; } }
dialog {
  width: min(575px,calc(100% - 28px)); max-width: none; max-height: min(700px,calc(100dvh - 28px));
  padding: 0; border: 1px solid #d8b4aa; border-radius: 25px; background: #fff7ef; color: var(--ink);
  box-shadow: 0 26px 100px #341b3780;
}
dialog[open] { display: flex; flex-direction: column; animation: show-chat .2s ease-out both; }
dialog::backdrop { background: #331e30a8; backdrop-filter: blur(5px); }
@keyframes show-chat { from { opacity: .35; transform: translateY(9px) scale(.985); } }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; background: radial-gradient(ellipse at 95% 0,#a96362,transparent 69%),linear-gradient(120deg,#5e3549,#813f50); color: #fff8ef; }
.chat-head img, .message-row img { object-fit: cover; object-position: center 34%; flex-shrink: 0; border-radius: 50%; }
.chat-head img { border: 2px solid #f8d3c1; }
.chat-identity { flex: 1; min-width: 0; }
.chat-head h2 { font: 650 24px/1 Georgia,serif; }
.chat-head p { margin-top: 5px; font-size: 11px; color: #ffe6e0; }
.close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #f8d3c16b; border-radius: 50%; background: #ffffff19; color: #fff8ef; font-size: 25px; line-height: 1; }
.close:hover { background: #ffffff30; }
.chat-mode { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #eddbd1; background: #fff0e7; color: #7b4b59; font-size: 10px; font-weight: 750; }
.messages {
  min-height: 160px; height: clamp(170px,40dvh,350px); flex: 1 1 auto; overflow-y: auto; padding: 18px;
  background: radial-gradient(ellipse at 99% 0,#f9ddd848,transparent 70%),radial-gradient(circle,#a36a561d 1px,transparent 1px) 0 0/17px 17px,#fff8f0;
}
.message-row { display: flex; align-items: end; gap: 8px; margin-bottom: 11px; }
.message-row.you { justify-content: end; }
.message-row img { box-shadow: 0 1px 4px #5933402f; }
.bubble { max-width: 80%; padding: 9px 12px; color: #4c3541; background: #fff; border: 1px solid #ebd8cf; border-radius: 15px 15px 15px 4px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 2px 8px #5e2d3910; }
.you .bubble { color: #fff8f3; background: #8b485a; border-color: #8b485a; border-radius: 15px 15px 4px 15px; }
.typing-dots { display: flex; gap: 4px; align-items: center; height: 33px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #a86a79; animation: typing .88s ease-in-out infinite alternate; }
.typing-dots i:nth-child(2) { animation-delay: .13s; }
.typing-dots i:nth-child(3) { animation-delay: .26s; }
@keyframes typing { from { opacity: .35; transform: translateY(1px); } to { opacity: 1; transform: translateY(-3px); } }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 15px 10px; border-top: 1px solid #eeddd5; background: #fff8f2; }
.suggestions:empty { display: none; }
.suggestions p { width: 100%; color: var(--muted); font-size: 11px; }
.suggestion { padding: 5px 9px; border: 1px solid #dfc0b5; border-radius: 99px; color: var(--plum); background: #fff2e8; font-size: 11px; }
.suggestion:hover { background: #fae1d8; }
.compose { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid #e8d5ca; background: #fff9f5; }
.compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 96px; resize: vertical; padding: 11px 12px; border: 1px solid #ddc4bd; border-radius: 12px; color: var(--ink); background: #fff; font-size: 16px; }
.compose textarea::placeholder { color: #806973; }
@media (max-width: 990px) {
  .shell { width: calc(100% - 42px); }
  .hero { min-height: 345px; }
  .cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 28px); }
  .header { min-height: 62px; }
  .brand { font-size: 23px; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 5px; }
  .header-actions .language { gap: 3px; padding-inline: 5px; }
  .header-actions .language > span { display: none; }
  .header-actions select { max-width: min(26vw, 98px); font-size: 11px; }
  .download-app { min-height: 33px; padding: 5px 7px; font-size: 11px; white-space: normal; }
  .header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px 12px; border-radius: 23px; }
  .hero h1 { margin-top: 13px; }
  .hero-text { margin: 14px 0 15px; }
  .hero-art { width: min(100%,380px); height: 199px; margin: 14px auto 0; --portrait-width: clamp(86px,27vw,128px); --portrait-gap: 8px; }
  .hero-stamp { width: 57px; right: 3%; }
  .section-title { align-items: start; }
  .section-title h2 { font-size: 29px; }
  .counter { margin-top: 2px; }
  .filters { flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .person-copy { padding-inline: 9px; }
  .footer-panel { grid-template-columns: 1fr; }
  .compose .button { padding-inline: 10px; gap: 5px; }
  dialog { max-height: calc(100dvh - 18px); border-radius: 19px; }
  .messages { min-height: 100px; padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.hero-track, .store-progress-fill), *::before, *::after { animation: none !important; transition: none !important; }
  .app-store[open] .store-progress-fill { animation-timing-function: steps(5,end); }
}
