/* 选题宝首页 Agent 入口 + 功能矩阵（独立前缀，避免覆盖现有样式） */
.company-goal_1 .container {
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.home-agent-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    box-sizing: border-box;
    width: 100%;
}

.home-agent-composer {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
    padding: 16px 18px 14px;
    position: relative;
    cursor: text;
}

.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: 5px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}

.home-agent-history svg {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.home-agent-history:hover {
    border-color: #c7d2fe;
    color: #4e6bff;
    background: #f5f7ff;
    box-shadow: 0 1px 4px rgba(78, 107, 255, 0.12);
}

.home-agent-composer textarea {
    width: 100%;
    min-height: 88px;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    line-height: 26px;
    color: #1f2937;
    background: transparent;
    font-family: inherit;
    box-sizing: border-box;
    padding: 0 108px 0 0;
}

.home-agent-composer textarea::-webkit-input-placeholder {
    color: #9ca3af;
}

.home-agent-composer-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
}

.home-agent-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #4e6bff;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, opacity .15s, cursor .15s;
}

.home-agent-send:hover:not(.is-disabled):not(:disabled) {
    background: #3d58e8;
}

.home-agent-send.is-disabled,
.home-agent-send:disabled {
    background: #c5c9d6;
    cursor: default;
    opacity: 1;
}

.home-agent-send svg {
    width: 18px;
    height: 18px;
    display: block;
}

.home-agent-chips {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-agent-chip {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.home-agent-chip:hover {
    border-color: #4e6bff;
    color: #4e6bff;
    background: #f5f7ff;
}

.home-feature-section {
    margin-top: 40px;
}

.home-feature-section + .home-feature-section {
    margin-top: 28px;
}

.home-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    padding-left: 2px;
}

.home-feature-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.home-feature-card {
    width: 25%;
    padding: 0 8px 16px;
    box-sizing: border-box;
}

.home-feature-card a {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 12px;
    padding: 16px 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
    min-height: 88px;
    box-sizing: border-box;
}

.home-feature-card a:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(78, 107, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

.home-feature-card .hf-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    display: block;
}

.home-feature-card .hf-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
}

.home-feature-card .hf-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}

.home-feature-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
}

/* agent 壳页 */
.agent-shell-main {
    width: 100%;
    background: #f8fafc;
    box-sizing: border-box;
}

.agent-shell-frame-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 0;
    height: calc(100vh - 160px);
    min-height: 820px;
}

.agent-shell-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

@media (max-width: 991px) {
    .home-feature-card {
        width: 50%;
    }
    .agent-shell-frame-wrap {
        height: calc(100vh - 200px);
        min-height: 420px;
    }
}

@media (max-width: 575px) {
    .home-feature-card {
        width: 100%;
    }
    .home-agent-composer textarea {
        min-height: 72px;
        font-size: 15px;
    }
    .home-column-card {
        width: 100%;
    }
}

/* 首页选题月报 */
.home-column-section {
    margin-top: 36px;
}

.home-column-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-column-head .home-feature-title {
    margin: 0;
}

.home-column-more {
    color: #4e6bff;
    font-size: 14px;
    text-decoration: none;
}

.home-column-more:hover {
    text-decoration: underline;
}

.home-column-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.home-column-card {
    width: 25%;
    padding: 8px;
    box-sizing: border-box;
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-column-cover {
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    /* aspect-ratio: 4 / 3; */
}

.home-column-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-column-meta {
    padding: 10px 4px 4px;
}

.home-column-meta h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #111827;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-column-meta p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #4e6bff;
}

.home-column-meta span {
    font-size: 12px;
    color: #9ca3af;
}

.home-column-empty {
    width: 100%;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 991px) {
    .home-column-card {
        width: 50%;
    }
}
