:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #687386;
    --line: #dde5ef;
    --accent: #13b5a6;
    --accent-dark: #0b8278;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(31, 45, 61, 0.08);
}

.topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

h1 {
    margin: 18px 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.hint {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.query {
    display: grid;
    gap: 14px;
}

textarea {
    width: 100%;
    min-height: 132px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    font: inherit;
    line-height: 1.6;
    outline: none;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(19, 181, 166, 0.16);
}

button {
    width: 148px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

.status,
.empty {
    margin-top: 18px;
    color: var(--muted);
}

.results {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.card {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.card.error {
    display: block;
    border-color: #ffd6d1;
    color: var(--danger);
}

.avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #edf2f7;
}

.placeholder {
    border: 1px solid var(--line);
}

.name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.meta {
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.meta a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.label {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
}

.apiBox {
    margin-top: 22px;
    padding: 14px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid var(--line);
    color: var(--muted);
}

.apiBox code {
    display: block;
    margin-top: 8px;
    color: var(--text);
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 920px);
        padding: 20px 0;
    }

    .panel {
        padding: 18px;
    }

    .topline {
        display: grid;
    }

    h1 {
        font-size: 24px;
    }

    button {
        width: 100%;
    }
}

