:root { --ink: #482937; --muted: #785c68; --berry: #a92d57; --pink: #ffe5ec; --blue: #e7ebff; --paper: #fffafb; --line: #d8bac6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff3f7; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.65; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; }
button:focus, input:focus, select:focus, summary:focus { outline: 3px solid #6549a2; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
.shell { max-width: 1080px; margin: 0 auto; padding: 24px 36px 20px; padding-top: calc(24px + var(--content-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px)))); padding-bottom: calc(20px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
.brand { display: flex; align-items: center; margin-bottom: 48px; font-size: 18px; font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: var(--berry); color: white; font-size: 26px; }
.brand-note { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.entry { display: grid; grid-template-columns: 1fr 1.12fr; grid-gap: 56px; align-items: start; }
.intro { padding-top: 28px; }
h1 { font-family: 'Songti SC', SimSun, serif; font-size: 48px; font-weight: 600; line-height: 1.3; letter-spacing: 1px; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.9; }
.hero-art { width: 100%; max-width: 390px; margin: 4px 0 18px -12px; }
.hero-art img { display: block; width: 100%; height: auto; }
.intro-foot { color: var(--muted); font-size: 12px; }
.form-panel { background: var(--paper); padding: 26px 28px 20px; border: 1px solid #e9d1da; border-radius: 24px; box-shadow: 0 12px 32px rgba(127,41,75,.047); }
.person { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.person + .person { border-top: 1px dashed var(--line); padding-top: 22px; }
.person legend { font-size: 19px; font-weight: 700; padding: 0 0 14px; width: 100%; }
.person-art { display: inline-block; width: 50px; height: 50px; vertical-align: middle; margin: -10px 5px -8px -8px; }
.person-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.person + .person legend { padding-top: 18px; }
.person-dot { display: inline-block; background: #f6acc1; width: 9px; height: 9px; border-radius: 50%; margin-right: 10px; }.person-b .person-dot { background: #9cace8; }
.field-row { display: grid; grid-template-columns: 1.18fr 1fr; grid-gap: 12px; }
.field { margin-bottom: 12px; min-width: 0; }
label { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, select { width: 100%; min-width: 0; height: 48px; background: #fff; border: 1px solid #a9919b; border-radius: 9px; color: var(--ink); padding: 10px; font-size: 16px; }
input[type=date] { -webkit-appearance: none; }
input[aria-invalid=true], select[aria-invalid=true] { border: 2px solid #b22442; }
.field-error { color: #a5203f; font-size: 12px; margin: 5px 0 0; }
.primary, .secondary { min-height: 50px; border-radius: 12px; font-weight: 600; border: 1px solid var(--berry); padding: 12px 20px; }
.primary { background: var(--berry); color: #fff; width: 100%; }.primary span { margin-left: 10px; font-size: 20px; }.primary:active { background: #862242; }
.primary:disabled { cursor: wait; opacity: .7; }
.secondary { color: var(--berry); background: #fffafb; }
.text-button { background: transparent; border: 0; color: var(--berry); min-height: 48px; padding: 10px; font-size: 13px; }
#example { display: block; margin: 0 auto; }
.privacy, .disclaimer { font-size: 11px; text-align: center; color: var(--muted); margin: 0; }
.message { font-size: 13px; color: #9e2749; margin-bottom: 10px; }.message:empty { display: none; }
.method { margin: 34px auto 0; max-width: 760px; font-size: 13px; }
.method summary { text-align: center; padding: 12px; color: var(--muted); min-height: 48px; }
.method-content { background: var(--paper); padding: 24px; border-radius: 16px; margin-top: 10px; }
.method-content h3 { font-size: 15px; margin: 20px 0 8px; }
.source-text { word-break: break-all; font-size: 11px; }
table { border-collapse: collapse; width: 100%; text-align: center; }caption { padding: 8px; }th, td { padding: 7px; border: 1px solid var(--line); }
footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 24px; }footer span { margin: 0 8px; }
.result { max-width: 920px; margin: 0 auto; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.result-toolbar span { font-size: 12px; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: .9fr 1.1fr; grid-gap: 32px; align-items: start; }
.result-ticket { position: relative; background: #fff3f1; border-radius: 24px; padding: 16px 24px 0; text-align: center; border: 1px solid #dfbcc9; overflow: hidden; }
.paper-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.result-ticket > :not(.paper-art) { position: relative; }
.match-art { display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.element-portrait { width: 44%; max-width: 140px; }
.element-portrait img { display: block; width: 100%; height: auto; }
.match-art span { font-family: Georgia, serif; font-size: 30px; color: var(--berry); padding: 0 2px; }
.pair-label { font-size: 13px; overflow-wrap: break-word; margin-bottom: 14px; }
#result-heading { font-family: 'Songti SC', SimSun, serif; font-size: 24px; line-height: 1.6; margin-bottom: 24px; }
#result-heading:focus, #poster-heading:focus { outline: none; }
.score-label { font-size: 12px; margin-bottom: 0; color: var(--muted); }.score { margin-bottom: 8px; line-height: 1.2; }.score strong { font-family: Georgia, serif; font-size: 92px; font-weight: 400; color: var(--berry); letter-spacing: -4px; }.score span { font-size: 14px; margin-left: 6px; }
.result-caption { font-size: 12px; max-width: 250px; margin: 12px auto 28px; color: var(--muted); }
.ticket-bottom { display: flex; justify-content: space-between; border-top: 1px dashed #ba8193; margin: 0 0 14px; padding: 18px 0; font-size: 11px; }
.insight-section { padding: 14px 0 20px; }.insight-section + .insight-section { border-top: 1px solid var(--line); }.insight-section h3 { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 12px; }.insight-section h3 span { color: var(--berry); font-size: 13px; font-weight: 400; padding-top: 4px; }.insight-section p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }.insight-section p.accent { color: var(--berry); font-weight: 600; }
.dimension { padding: 12px 0; }.dimension + .dimension { border-top: 1px dashed #dec7d0; }.dimension h4 { font-size: 13px; margin: 0 0 7px; display: flex; justify-content: space-between; }.dimension h4 span { color: var(--muted); font-size: 12px; font-weight: 400; }.dimension p { font-size: 12px; }
.conversation { background: #e9eaff; padding: 20px 22px; border-radius: 4px 20px 20px 20px; }.conversation span { font-size: 11px; color: #5b5683; }.conversation p { font-size: 16px; margin: 10px 0 0; color: #494368; }
.result-actions { display: flex; justify-content: center; margin: 28px 0 14px; }.result-actions .primary { max-width: 320px; }.result-actions .secondary { margin-left: 12px; }
.poster-panel { text-align: center; max-width: 400px; margin: 30px auto; }.poster-panel img { display: block; width: 100%; height: auto; margin-bottom: 16px; border-radius: 16px; }.poster-panel h3 { font-size: 20px; }
@media (max-width: 720px) {
  .shell { padding-left: 20px; padding-right: 20px; }.brand { margin-bottom: 24px; font-size: 16px; }.brand-note { font-size: 10px; }
  .entry { display: block; }.intro { position: relative; padding: 5px 0 12px; min-height: 183px; }h1 { font-size: 31px; line-height: 1.4; margin-bottom: 10px; }.lead { font-size: 12px; line-height: 1.8; }.intro-foot { display: none; }
  .hero-art { position: absolute; width: 160px; height: 160px; right: -9px; top: 4px; margin: 0; }
  .form-panel { padding: 22px 20px 18px; border-radius: 20px; }.person { margin-bottom: 18px; }.person legend { font-size: 17px; }.person + .person { padding-top: 10px; }.person + .person legend { padding-top: 14px; }
  .result-grid { display: block; }.result-ticket { max-width: 430px; margin: 0 auto 20px; }.insights { padding: 0 4px; }.result-actions { display: block; }.result-actions .primary { max-width: none; }.result-actions .secondary { margin: 10px 0 0; width: 100%; }.method { margin-top: 22px; }
}
@media (max-width: 350px) { .shell { padding-left: 12px; padding-right: 12px; }.form-panel { padding-left: 14px; padding-right: 14px; }.hero-art { width: 138px; height: 138px; right: -3px; }h1 { font-size: 28px; }.field-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .result-ticket { animation: reveal .35s ease-out; }@keyframes reveal { from { opacity: 0; transform: translateY(8px); }to { opacity: 1; transform: translateY(0); } } }
