/* 微信首页助手入口（窄屏；不改 PC home-agent.css） */
.home-agent-wrap {
    padding: 12px 12px 8px;
    box-sizing: border-box;
    background: #f5f6fa;
}

.home-agent-composer {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
    padding: 12px 12px 10px;
}

.home-agent-composer-main {
    position: relative;
}

.home-agent-history {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    line-height: 1;
}

.home-agent-history svg {
    width: 14px;
    height: 14px;
    display: block;
}

.home-agent-composer textarea {
    width: 100%;
    min-height: 64px;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    line-height: 22px;
    color: #1f2937;
    background: transparent;
    font-family: inherit;
    box-sizing: border-box;
    padding: 0 92px 0 0;
}

.home-agent-composer-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 6px;
}

.home-agent-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #4e6bff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.home-agent-send.is-disabled,
.home-agent-send:disabled {
    background: #c5c9d6;
}

.home-agent-send svg {
    width: 16px;
    height: 16px;
    display: block;
}

.home-agent-ai-hint {
    margin: 8px 2px 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
    color: #9ca3af;
}

.home-agent-chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.home-agent-chip {
    flex: 0 1 auto;
    max-width: 100%;
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 首页功能分组：选题 / 写作 / 分析 */
.topSelection {
    padding: 4px 12px 12px;
    box-sizing: border-box;
    background: #f5f6fa;
}

.home-feat-block {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 2px 0 10px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.home-feat-block:last-child {
    margin-bottom: 0;
}

.home-feat-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 2px;
}

.home-feat-arrow {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.home-feat-arrow i {
    position: absolute;
    top: 3px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #4e6bff;
    border-right: 2px solid #4e6bff;
    transform: rotate(45deg);
    border-radius: 1px;
}

.home-feat-arrow i:first-child {
    left: 0;
    opacity: 0.45;
}

.home-feat-arrow i:last-child {
    left: 5px;
}

.home-feat-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.04em;
    line-height: 1;
}

.topSelection .small_img {
    justify-content: flex-start;
    padding: 6px 6px 0;
}

.topSelection .small_img p {
    float: none;
    width: 20%;
    box-sizing: border-box;
    padding: 4px 2px 2px;
}

.topSelection .small_img p img {
    width: 48px;
    max-width: 72%;
    display: block;
    margin: 0 auto;
}

.topSelection .small_img p em {
    display: block;
    font-style: normal;
    font-size: 11px;
    line-height: 1.3;
    color: #333;
    margin-top: 4px;
}
