/* QQ强制聊天搜索：简洁、轻量，沿用 GuYi Tools 的暗色界面 */
.qq-chat-page {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 38px 24px 48px;
}

.qq-chat-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.qq-chat-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 34px;
}

.qq-chat-heading h1 {
    margin: 0;
    color: rgba(255,255,255,.94);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: 0;
}

.qq-chat-heading p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.48);
    font-size: 13px;
    line-height: 1.6;
}

.qq-chat-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 0 7px 10px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    cursor: pointer;
}

.qq-chat-back:hover { color: #fff; }
.qq-chat-back i { font-size: 15px; }

.qq-chat-form {
    width: 100%;
    max-width: 600px;
}

.qq-chat-label {
    display: block;
    margin: 0 0 9px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 550;
}

.qq-chat-input {
    display: block;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 7px;
    outline: none;
    background: rgba(255,255,255,.035);
    color: #fff;
    font: 14px 'JetBrains Mono', Consolas, monospace;
    letter-spacing: .02em;
    text-shadow: none;
    -webkit-user-select: text;
    user-select: text;
    transition: border-color .15s ease, background .15s ease;
}

.qq-chat-input::placeholder {
    color: rgba(255,255,255,.3);
    font: 13px system-ui, sans-serif;
}

.qq-chat-input:focus {
    border-color: rgba(255,55,95,.7);
    background: rgba(255,255,255,.055);
}

.qq-chat-feedback {
    min-height: 18px;
    margin: 8px 0 20px;
    color: rgba(255,255,255,.4);
    font-size: 11px;
    line-height: 1.5;
}

.qq-chat-feedback.is-error { color: #ff8e9e; }

.qq-chat-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.qq-chat-action {
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.84);
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.qq-chat-action:hover {
    border-color: rgba(255,255,255,.32);
    background: rgba(255,255,255,.075);
    color: #fff;
}

.qq-chat-action:focus-visible,
.qq-chat-back:focus-visible {
    outline: 2px solid rgba(255,55,95,.75);
    outline-offset: 3px;
}

.qq-chat-action-primary {
    border-color: rgba(255,55,95,.55);
    background: rgba(255,55,95,.12);
    color: #fff;
}

.qq-chat-action-primary:hover {
    border-color: rgba(255,55,95,.8);
    background: rgba(255,55,95,.2);
}

.qq-chat-note {
    margin: 18px 0 0;
    color: rgba(255,255,255,.36);
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .qq-chat-page { padding: 24px 18px 110px; }
    .qq-chat-heading { margin-bottom: 28px; }
    .qq-chat-heading h1 { font-size: 21px; }
    .qq-chat-heading p { font-size: 12px; }
    .qq-chat-back { padding-right: 0; }
    .qq-chat-actions { grid-template-columns: 1fr; gap: 8px; }
    .qq-chat-action { min-height: 45px; text-align: center; }
}
