:root {
    --red: #df2338;
    --ink: #262a32;
    --muted: #69717b;
    --line: #e9ebee;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
p, h1, h2, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
    max-width: 808px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-inner > a:last-child { font-size: 13px; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; }
.brand img { border-radius: 7px; }
.page { max-width: 808px; padding: 32px 24px 40px; margin: auto; }
.page-heading { margin-bottom: 30px; }
h1 { font-size: 32px; line-height: 1.4; letter-spacing: -.7px; }
.page-heading p { margin-top: 9px; color: var(--muted); }
.method + .method { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.method-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.method-number {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--red);
    background: #fff0f2;
    font-size: 12px;
    font-weight: 700;
}
h2 { font-size: 19px; line-height: 1.5; }
.method-description { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.chat-turn { display: flex; align-items: flex-start; gap: 11px; }
.outgoing { justify-content: flex-end; margin-bottom: 23px; }
.chat-avatar { width: 32px; height: 32px; border-radius: 5px; flex-shrink: 0; }
.self-avatar { display: grid; place-items: center; color: #606871; background: #dde0e4; font-size: 14px; }
.sent-message {
    position: relative;
    background: #a6ea75;
    color: #18300d;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
}
.sent-message::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 12px;
    border-width: 6px 0 6px 7px;
    border-style: solid;
    border-color: transparent transparent transparent #a6ea75;
}
.copy-button {
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 40px;
    cursor: pointer;
}
.copy-button:hover { background: #f5f6f7; }
.copy-button[hidden] { display: none; }
.city-example { font-size: 13px; color: var(--muted); margin-top: 10px; }
.city-example strong { margin-left: 5px; color: var(--ink); font-weight: 500; }
.copy-feedback { font-size: 13px; color: #356b4a; }
.copy-feedback:not(:empty) { margin-top: 8px; }
.conversation { padding: 16px 18px 20px; background: #f0f1f2; border-radius: 9px; }
figcaption { color: var(--muted); font-size: 12px; margin-bottom: 20px; text-align: center; }
.received-message { position: relative; min-width: 0; padding: 17px 19px; border-radius: 7px; background: #fff; font-size: 15px; }
.received-message::before { content: ""; position: absolute; left: -6px; top: 12px; border-width: 6px 7px 6px 0; border-style: solid; border-color: transparent #fff transparent transparent; }
.conversation-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.conversation-tools .city-example { margin-top: 0; }
.received-message > strong { font-size: 17px; font-weight: 600; }
.received-message p { margin-top: 10px; }
.link-highlight { margin-top: 10px; width: fit-content; }
.example-link { color: #506d99; overflow-wrap: anywhere; }
.click-hint { margin-left: 15px; color: var(--red); font-size: 12px; white-space: nowrap; }
.click-hint::before { content: "← "; }
.search-example { padding: 15px 18px 18px; background: #f0f1f2; border-radius: 9px; }
.search-example figcaption { margin-bottom: 12px; text-align: left; }
.search-field { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.search-channel { color: var(--red); padding-right: 14px; border-right: 1px solid var(--line); flex-shrink: 0; }
.search-icon { margin-left: auto; color: var(--muted); font-size: 23px; line-height: 1; }
.guide-faq { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.guide-faq h2 { margin-bottom: 8px; }
.guide-faq details + details { border-top: 1px solid var(--line); }
.guide-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 2px; list-style: none; cursor: pointer; font-weight: 500; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.guide-faq details[open] summary::after { transform: rotate(225deg); }
.guide-faq p { padding: 0 2px 16px; color: var(--muted); font-size: 14px; }
.guide-faq strong { color: var(--ink); font-weight: 500; }
.start-sqzs { border-top: 1px solid var(--line); background: #fafafa; }
.start-sqzs-inner { max-width: 808px; margin: auto; padding: 28px 24px 32px; }
.start-sqzs h2 { margin-bottom: 18px; }
.qr-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qr-entry { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.qr-link { display: flex; flex-direction: column; align-items: center; padding: 16px 12px; border-radius: inherit; }
.qr-link:hover { background: #f5f6f7; color: var(--ink); }
.qr-preview { position: relative; width: 192px; max-width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: 13px; }
.qr-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Enlarge the QR area in the preview; opening it still shows the complete original poster. */
[data-qr-entry="robot"] .qr-preview img { transform: scale(2.2); }
.qr-link strong { font-size: 15px; font-weight: 600; }
.start-sqzs-tip { margin-top: 17px; color: var(--muted); font-size: 13px; text-align: center; }
.start-sqzs-tip span { margin: 0 5px; }
.start-sqzs-tip a { color: var(--red); display: inline-block; padding: 6px 0; }
.qr-dialog { width: min(420px, calc(100% - 40px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 24px; margin: auto; border: 0; border-radius: 12px; color: var(--ink); text-align: center; overflow: auto; }
.qr-dialog:not([open]) { display: none; }
.qr-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.qr-dialog h2 { padding: 0 30px; margin-bottom: 18px; }
.qr-close { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 28px; cursor: pointer; }
.qr-dialog-image { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); object-fit: contain; margin: 0 auto 16px; }
#qr-dialog-hint, .qr-original { font-size: 13px; color: var(--muted); }
.qr-original { display: inline-block; padding: 8px; color: var(--red); }
body.qr-open { overflow: hidden; }
@media (max-width: 600px) {
    .header-inner { padding: 14px 20px; }
    .page { padding: 25px 20px 30px; }
    h1 { font-size: 28px; }
    .page-heading { margin-bottom: 25px; }
    .page-heading p { font-size: 14px; }
    h2 { font-size: 17px; }
    .method-heading { gap: 10px; }
    .sent-message { font-size: 16px; padding: 11px 13px; }
    .copy-button { font-size: 12px; padding: 8px 10px; }
    .conversation { padding: 14px 12px; }
    .chat-turn { gap: 9px; }
    .chat-avatar { width: 29px; height: 29px; }
    .sent-message { max-width: calc(100% - 38px); }
    .received-message { padding: 14px; font-size: 14px; }
    .received-message > strong { font-size: 16px; }
    .click-hint { display: block; margin-left: 0; }
    .click-hint::before { content: "↑ "; }
    .search-example { padding: 14px 12px; }
    .search-field { gap: 10px; padding: 10px; font-size: 14px; }
    .search-channel { padding-right: 10px; }
    .start-sqzs-inner { padding: 24px 20px; }
    .qr-entries { gap: 8px; }
    .qr-link { padding: 12px 6px; }
    .qr-preview { width: 100%; margin-bottom: 10px; }
    .qr-link strong { font-size: 13px; }
    .start-sqzs-tip { font-size: 12px; }
    .qr-dialog { padding: 22px 18px 16px; }
}
