:root {
    --bg: #fff6f1;
    --card: #ffffff;
    --text: #2c241a;
    --muted: #8a8a8a;
    --muted-2: #666666;
    --line: #ececec;
    --tab-idle: #f3f3f3;
    --grad: linear-gradient(90deg, #ff6b3d 0%, #ff3f2c 100%);
    --shadow: 0 18px 50px -24px rgba(255, 80, 40, 0.28), 0 8px 24px -12px rgba(40, 20, 10, 0.08);
    --radius: 28px;
    --max: 980px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

img {
    max-width: 100%;
}

a {
    color: #e24a2d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.site-header {
    padding: 22px 0 8px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--muted-2);
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a {
    color: #5c4a3a;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
    background: #ffe8dc;
    color: #d63c22;
    outline: none;
}

/* Hero search card — matches provided UI */
.hero {
    padding: 18px 0 8px;
}

.search-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mode-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 18px 12px;
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--tab-idle);
    color: #8b8b8b;
    font-family: inherit;
}

.mode-tab.is-active {
    background: var(--grad);
    color: #fff;
}

.panel {
    display: none;
    padding: 18px 22px 22px;
}

.panel.is-active {
    display: block;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 16px;
}

.choice {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b6b6b;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.2;
}

.choice:hover,
.choice:focus-visible {
    color: #e24a2d;
    outline: none;
}

.choice.is-active {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.28);
}

.engine-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 52px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.ai-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge, #444);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hot-keywords {
    margin-top: 14px;
}

.hot-keywords-head {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8a6a58;
    margin-bottom: 8px;
}

.hot-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-chip {
    appearance: none;
    border: 1px solid #f0e0d4;
    background: #fffaf6;
    color: #5c4a3a;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}

.hot-chip:hover,
.hot-chip:focus-visible {
    border-color: #ff8a63;
    color: #d63c22;
    background: #fff4ef;
    outline: none;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 8px;
    margin-bottom: 14px;
}

.ai-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 8px;
    border-radius: 14px;
    color: #444;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.ai-item:hover,
.ai-item:focus-visible {
    background: #fff4ef;
    color: #d63c22;
    text-decoration: none;
    outline: none;
}

.ai-item img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-row input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
}

.search-row input[type="search"]::placeholder {
    color: #b0b0b0;
}

.search-row input[type="search"]:focus {
    border-color: #ff8a63;
    box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.12);
}

.search-go {
    appearance: none;
    border: 0;
    min-width: 118px;
    height: 52px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.search-go:hover {
    filter: brightness(1.03);
}

.search-go:focus-visible {
    outline: 3px solid rgba(255, 75, 43, 0.35);
    outline-offset: 2px;
}

.hint {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #2c241a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 20;
}

.toast.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Content */
main {
    padding-bottom: 48px;
}

.lead {
    text-align: center;
    padding: 28px 8px 8px;
}

.lead h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 10px;
}

.lead p {
    color: #5c4a3a;
    max-width: 46em;
    margin: 0 auto;
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0 28px;
}

.fact {
    background: #fff;
    border-radius: 18px;
    padding: 16px 14px;
    box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.25);
}

.fact dt {
    font-size: 0.78rem;
    color: var(--muted-2);
    font-weight: 700;
    margin-bottom: 4px;
}

.fact dd {
    font-weight: 800;
    font-size: 0.95rem;
    word-break: break-all;
}

.fact-email {
    grid-column: 1 / -1;
}

.fact-email .email-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    font-weight: 800;
    font-size: 0.95rem;
    word-break: break-all;
}

.fact-email .email-row a {
    color: inherit;
}

.section {
    background: #fff;
    border-radius: 24px;
    padding: 28px 26px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px -20px rgba(40, 20, 10, 0.35);
}

.section h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.section h3 {
    font-size: 1.02rem;
    margin: 18px 0 8px;
}

.section p + p,
.section ul + p {
    margin-top: 10px;
}

.section ul,
.section ol {
    padding-left: 1.2em;
}

.section li + li {
    margin-top: 6px;
}

.cite-box {
    background: #fff7f3;
    border: 1px solid #ffe1d4;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mini {
    background: #fafafa;
    border-radius: 14px;
    padding: 14px 16px;
}

.mini h3 {
    margin-top: 0;
}

.engine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.engine-table th,
.engine-table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: top;
}

.engine-table th {
    color: var(--muted-2);
    font-weight: 700;
}

.faq details {
    border-top: 1px solid #f1f1f1;
    padding: 12px 0;
}

.faq details:first-of-type {
    border-top: 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details p {
    margin-top: 8px;
    color: #4a3c32;
}

.footer {
    padding: 8px 0 40px;
    color: #7a6a5c;
    font-size: 0.86rem;
    text-align: center;
}

.footer .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 10px;
}

.footer p + p {
    margin-top: 6px;
}

/* Contact */
.facts-contact dd a {
    color: inherit;
    font-weight: 800;
}

.email-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 8px;
}

.email-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    background: #fff7f3;
    border: 1px solid #ffe1d4;
    border-radius: 16px;
    padding: 16px 18px;
    margin: 0;
}

.email-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted-2);
}

.email-value {
    font-weight: 800;
    font-size: 1.05rem;
    word-break: break-all;
    color: inherit;
}

.copy-email {
    appearance: none;
    border: 0;
    margin-left: auto;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.copy-email:hover {
    filter: brightness(1.03);
}

.copy-email:focus-visible {
    outline: 3px solid rgba(255, 75, 43, 0.35);
    outline-offset: 2px;
}

.hint-block {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--muted-2);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.action-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-card h3 {
    margin: 0;
}

.action-card p {
    color: #5c4a3a;
    font-size: 0.92rem;
    flex: 1;
}

.action-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.action-go:hover {
    text-decoration: none;
    filter: brightness(1.03);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.qr-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 280px));
}

.channel-card,
.qr-figure {
    background: #fafafa;
    border-radius: 16px;
    margin: 0;
}

.qr-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 14px;
    text-align: center;
}

.channel-card .qr-figure {
    background: transparent;
}

.qr-figure img {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ffe1d4;
    object-fit: cover;
}

.qr-figure img.is-placeholder {
    object-fit: contain;
}

.qr-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.qr-caption strong {
    font-size: 0.98rem;
}

.account-id {
    font-size: 0.82rem;
    color: #5c4a3a;
    word-break: break-all;
}

.account-id.is-empty {
    color: var(--muted);
}

.section code {
    font-size: 0.86em;
    background: #fff7f3;
    padding: 1px 6px;
    border-radius: 6px;
}

@media (max-width: 820px) {
    .facts,
    .grid-2,
    .action-grid,
    .qr-grid,
    .qr-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .ai-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .choice-row {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .mode-tab {
        font-size: 0.92rem;
        padding: 15px 8px;
    }

    .panel {
        padding: 14px 14px 16px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-go {
        width: 100%;
    }

    .engine-tag {
        display: none;
    }

    .facts,
    .grid-2,
    .action-grid,
    .qr-grid,
    .qr-grid-2 {
        grid-template-columns: 1fr;
    }

    .copy-email {
        margin-left: 0;
        width: 100%;
    }

    .ai-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px 4px;
    }

    .ai-item {
        font-size: 0.7rem;
        padding: 8px 2px 6px;
    }

    .ai-item img,
    .ai-badge {
        width: 34px;
        height: 34px;
    }

    .ai-badge {
        font-size: 0.58rem;
    }

    .section {
        padding: 22px 16px;
    }
}
