/* =============================================
   Talego 主页样式 — 精确还原目标设计
   ============================================= */

/* ========== 全局重置 & 基础 ========== */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow-x: hidden;
}

.home-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: calc(var(--nav-h, 64px) + 48px) 24px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
    
}


/* ========== Hero 区域 ========== */
.hero-section {
    padding: 20px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 34px;
    font-weight: 700;
    color: #eee;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

/* 输入区容器 — 几乎全宽 */
.hero-input-wrap {
    position: relative;
    max-width: 960px;
    margin: 0 auto 14px;
}

.hero-input {
    width: 100%;
    height: 120px;
    background: #333333;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 110px 40px 16px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.hero-input::placeholder {
    color: rgba(255,255,255,0.28);
}

.hero-input:focus {
    border-color: rgba(255,255,255,0.16);
    background: #1e1e26;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
}

/* 工具栏：Agent模式 + 自动（输入框内部左下角） */
.hero-bar {
    
    position: absolute;
    left: 16px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100% - 68px);
    flex-wrap: nowrap;
    overflow: hidden;
}
.hero-bar > * { pointer-events: auto; flex-shrink: 0; }

.agent-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.agent-picker:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
}

.auto-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    padding: 5px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
}

/* 语音按钮 — 无背景纯图标，发送按钮左边 */
.hero-voice-btn {
    position: absolute;
    right: 68px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 1;
}

.hero-voice-btn:hover {
    background: transparent;
    color: rgba(255,255,255,0.75);
}

.hero-voice-btn:active {
    color: rgba(255,255,255,0.9);
}

/* 语音与发送按钮之间的分隔线（置于容器层级，确保居中） */
/* .hero-input-wrap::after {
    content: '';
    position: absolute;
    right: 65px;
    bottom: 22px;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
} */

/* 发送按钮 — 深色圆形 */
.hero-send-btn {
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 1;
}

.hero-send-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* 输入框下方区域 */
.hero-below {
    max-width: 960px;
    margin: 6px auto 0;
    text-align: left;
}

/* 未登录：灵感芯片 */
.hero-guest-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-left: 2px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.hero-chip svg {
    flex-shrink: 0;
    opacity: 0.72;
}

.hero-chip:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

/* 已登录：最近项目（参考 TapNow 紧凑卡片） */
.hero-recent {
    width: 100%;
}

.hero-recent-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.hero-recent-grid::-webkit-scrollbar {
    display: none;
}

.hero-proj-card {
    flex: 0 0 208px;
    width: 208px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

.hero-proj-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.055);
}

.hero-proj-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    background: linear-gradient(145deg, #2a3550 0%, #3d5278 55%, #5a7aa8 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-proj-thumb-new {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
}

.hero-proj-thumb-new span {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255,255,255,0.82);
}

.hero-proj-meta {
    padding: 8px 10px 10px;
}

.hero-proj-meta-new {
    padding: 7px 10px 9px;
}

.hero-proj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    min-width: 0;
}

.hero-proj-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.hero-proj-time {
    font-size: 11px;
    color: rgba(255,255,255,0.34);
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-proj-action {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: none;
    background: none;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    line-height: 1.35;
    width: 100%;
    min-width: 0;
}

.hero-proj-action span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.hero-proj-action:hover {
    color: rgba(255,255,255,0.72);
}

.hero-proj-action svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.hero-recent-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-right: 2px;
}

.hero-recent-all {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.15s;
}

.hero-recent-all:hover {
    color: rgba(255,255,255,0.78);
}


/* ========== taleg word区域 ========== */
.inspire-sec {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.inspire-head {
    margin-bottom: 18px;
}

.inspire-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspire-icon {
    font-size: 17px;
    color: #fbbf24;
}

.inspire-name {
    font-size: 17px;
    font-weight: 600;
    color: #e8e8ec;
    margin: 0;
}

/* 工具栏：Tab + 搜索框 */
.inspire-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.inspire-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tab-pill {
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    cursor: pointer;
    transition: all 0.16s;
    user-select: none;
}

.tab-pill:hover {
    color: rgba(255,255,255,0.78);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

.tab-pill.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

/* 搜索框 */
.inspire-search-box {
    position: relative;
    margin-left: auto;
}

.inspire-search-box input {
    width: 210px;
    height: 34px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0 34px 0 12px;
    font-size: 13px;
    color: #ddd;
    outline: none;
    transition: all 0.2s;
}

.inspire-search-box input::placeholder {
    color: rgba(255,255,255,0.28);
}

.inspire-search-box input:focus {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
}

.inspire-search-box svg {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    pointer-events: none;
}

/* 卡片网格 — 目标设计是3列大卡片 */
.inspire-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    min-height: 120px;
}

@media (max-width: 900px) {
    .inspire-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .inspire-cards { grid-template-columns: 1fr; }
}

/* 作品卡片（JS动态生成） */
.work-card {
    background: #16161b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.card-cover-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1c1c22;
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.work-card:hover .card-cover {
    transform: scale(1.04);
}

.card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(145deg, #222228, #18181d);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.52);
    color: rgba(255,255,255,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 2;
}
.card-fav-btn:hover {
    background: rgba(0,0,0,0.68);
    color: #fff;
    transform: scale(1.04);
}
.card-fav-btn.active {
    color: #f5c842;
    background: rgba(0,0,0,0.62);
}
.card-fav-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.card-fav-count {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* 卡片内容区 */
.card-body {
    padding: 13px 15px 15px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e2e6;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
}

.card-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-stat {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

/* 分页 */
.inspire-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.pager-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.pager-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.09);
    color: #fff;
    border-color: rgba(255,255,255,0.14);
}

.pager-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.pager-text {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    min-width: 48px;
    text-align: center;
}

/* 加载更多 */
.load-more-wrap {
    text-align: center;
    margin-top: 28px;
}

.load-more-btn {
    padding: 9px 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.16s;
}

.load-more-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.14);
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: rgba(255,255,255,0.22);
    font-size: 14px;
}

.empty-state p { margin: 0; }


/* ========== 页脚 ========== */
.site-foot {
    text-align: center;
    padding: 36px 0 56px;
    color: rgba(255,255,255,0.22);
    font-size: 12px;
    line-height: 2.2;
    max-width: 1200px;
    margin: 0 auto;
}

.site-foot p { margin: 0; }

.site-foot a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.15s;
}

.site-foot a:hover { color: rgba(255,255,255,0.65); }


/* ========== 用户面板弹窗（navbar 中使用） ========== */
.user-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: calc(var(--nav-h, 64px) + 16px);
    padding-right: 28px;
}

.user-panel-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.user-panel {
    position: relative;
    width: 300px;
    background: #1a1a22;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02);
    z-index: 1;
    animation: panelIn 0.2s ease;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== 用户面板 — 匹配目标设计（无头部、紧凑） ========== */

/* 隐藏旧元素（已从HTML中移除但保留样式兼容） */
.up-close-btn { display: none !important; }
.up-header { display: none !important; }
.up-balance-card { display: none !important; }

/* AI 积分行（图标 + 数量 + FREE 标签） */
.up-balance-row {
    display: flex; align-items: center; gap: 8px;
    margin: 0 16px 6px;
    color: rgba(255,255,255,0.7);
}
.up-balance-num {
    font-size: 18px; font-weight: 700; color: #fff;
}
.up-free-tag {
    font-size: 10.5px; font-weight: 700;
    background: rgba(59,130,246,0.15);
    color: #60a5fa; padding: 1px 7px;
    border-radius: 4px; letter-spacing: 0.3px;
}

/* 额度限制行 */
.up-limit-row-new {
    display: flex; align-items: center; gap: 4px;
    margin: 2px 16px 4px;
    font-size: 12px; font-weight: 500;
    color: #60a5fa;
}
.up-limit-row-new .up-infinity {
    margin-left: auto;
    font-size: 14px; color: rgba(255,255,255,0.25);
}

/* 蓝色进度条 */
.up-quota-bar-new {
    height: 3px; border-radius: 2px;
    margin: 0 16px 8px;
    background: rgba(96,165,250,0.12);
}
.up-quota-fill-new {
    height: 100%; width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* ★ 用户头像+昵称头部（面板顶部） */
.up-user-head {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 16px 6px; padding: 4px 0;
}
.up-user-avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 17px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
    overflow: hidden;
}
.up-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.up-user-text {
    display: flex; flex-direction: column; gap: 3px;
    overflow: hidden;
}
.up-user-nickname {
    font-size: 15px; font-weight: 600;
    color: rgba(255,255,255,0.92);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-user-id {
    font-size: 11.5px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 当前团队信息行 */
.up-current-team {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 16px 10px; padding: 11px 13px;
    border-radius: 11px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.14s ease;
    position: relative;
}
.up-current-team:hover { background: rgba(255,255,255,0.07); }
.up-current-team.expanded { background: rgba(139,92,246,0.08); }

.up-team-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    font-size: 13px; font-weight: 700;
}
.up-team-info { flex: 1; min-width: 0; }
.up-team-name {
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.75);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-team-arrow {
    color: rgba(255,255,255,0.28);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.up-current-team.expanded .up-team-arrow { transform: rotate(90deg); }

/* 团队选择子面板 — 在首页 user-panel 内向下展开，避免被左侧裁切 */
.up-team-list-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    width: 100%; max-height: 340px;
    background: #1e1e28;
    backdrop-filter: blur(20px) saturate(1.5);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto; overflow-x: hidden;
    z-index: 200;
}
.up-team-list-panel.show { display: block; animation: utdSlideIn 0.2s ease forwards; }
@keyframes utdSlideIn {
    from { opacity: 0; transform: translateX(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.utd-tlp-header {
    padding: 12px 14px 6px;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px;
    color: rgba(255,255,255,0.22); text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 2px;
}
.utd-tlp-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; cursor: pointer; transition: all 0.15s ease;
    position: relative;
}
.utd-tlp-item:hover { background: rgba(255,255,255,0.06); }
.utd-tlp-item.active { background: rgba(99,102,241,0.1); }
.utd-tlp-item-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(99,102,241,0.12); color: #818cf8;
    font-size: 11.5px; font-weight: 700;
}
.utd-tlp-item.active .utd-tlp-item-icon { background: rgba(139,92,246,0.2); color: #a78bfa; }
.utd-tlp-item-name { font-size: 13px; color: rgba(255,255,255,0.7); flex: 1; font-weight: 500; }
.utd-tlp-item.active .utd-tlp-item-name { color: rgba(255,255,255,0.92); }
.utd-tlp-check { color: #22c55e; flex-shrink: 0; opacity: 0; transition: opacity 0.15s; }
.utd-tlp-item.active .utd-tlp-check { opacity: 1; }
.utd-tlp-loading { padding: 24px 18px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.25); }

/* 创建团队（文字链接风格，蓝色） */
.up-create-team-link {
    width: calc(100% - 32px);
    margin: 2px 16px 10px; padding: 9px 0;
    background: none; border: none;
    color: #60a5fa; font-size: 13.5px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    gap: 6px; transition: color 0.15s;
    font-family: inherit;
}
.up-create-team-link:hover { color: #93c5fd; }
.up-create-team-link svg { stroke: currentColor; }

/* 菜单列表 */
.up-menu-list { padding: 0 10px; }

.up-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    text-decoration: none; font-size: 13.5px; color: rgba(255,255,255,0.6);
    transition: background 0.15s, color 0.15s; cursor: pointer;
}
.up-menu-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.up-menu-item svg { flex-shrink: 0; opacity: 0.55; }
.up-menu-item:hover svg { opacity: 1; }
.up-item-arrow { justify-content: flex-start; }
.up-arrow-icon { margin-left: auto; opacity: 0.25; transition: opacity 0.15s; flex-shrink: 0; }
.up-menu-item:hover .up-arrow-icon { opacity: 0.55; }

.up-separator { display: none; } /* 不再使用分隔线 */


/* ========== 免费体验按钮（覆盖common.css中的版本以匹配目标） ========== */
.btn-free-trial {
    padding: 8px 20px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #7c5cfc, #a855f7) !important;
    border: none !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s, box-shadow 0.2s !important;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 12px rgba(124,92,252,0.3) !important;
}
.btn-free-trial:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(124,92,252,0.4) !important;
}

.nav-username-text { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ========== Navbar 团队切换器（右上角） ========== */
.nav-team-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px 3px 3px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.nav-team-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 4px;
    border-radius: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    color: inherit;
    font-family: inherit;
}
.nav-team-btn:hover { background: rgba(255,255,255,0.07); }
.nav-team-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.nav-team-name {
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.75);
    max-width: 110px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-team-arrow {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
/* 用户头像在团队按钮右侧 */
.nav-team-switcher .user-avatar-sm {
    width: 30px; height: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.nav-team-switcher .user-avatar-sm:hover {
    transform: scale(1.08);
}

/* 移动端：隐藏团队名称，只保留图标和头像 */
@media (max-width: 640px) {
    .nav-team-name { display: none; }
    .nav-team-arrow { display: none; }
}


/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .hero-title { font-size: 22px; margin-bottom: 20px; letter-spacing: 0.2px; }
    .hero-section { padding: 8px 0 32px; }

    /* 输入区 — 手机端更紧凑，工具栏保持在输入框内部 */
    .hero-input-wrap { max-width: 100%; margin-bottom: 10px; }
    .hero-input {
        height: auto;
        min-height: 120px;
        padding: 14px 92px 42px 14px;
        font-size: 14px;
        border-radius: 12px;
        background: #222228;
        resize: none;
    }
    .hero-input::placeholder { color: rgba(255,255,255,0.25); font-size: 13.5px; }

    /* 工具栏 — 保持在输入框内部左下角 */
    .hero-bar {
        left: 14px;
        bottom: 10px;
        gap: 6px;
        max-width: calc(100% - 54px);
    }
    .agent-picker { font-size: 11.5px; padding: 4px 10px; gap: 4px; }
    .auto-pill { font-size: 11px; padding: 4px 9px; gap: 3px; }

    /* 发送按钮 — 保持在输入框内部右下角 */
    .hero-send-btn {
        right: 12px;
        bottom: 10px;
        width: 34px;
        height: 34px;
    }

    /* 语音按钮 — 发送按钮左边 */
    .hero-voice-btn {
        right: 52px;
        bottom: 10px;
        width: 34px;
        height: 34px;
    }
/* 
    .hero-input-wrap::after {
        right: 54px;
        bottom: 18px;
        height: 18px;
    } */

    /* 输入框下方 */
    .hero-guest-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .hero-guest-chips::-webkit-scrollbar { display: none; }
    .hero-chip {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
        padding: 7px 14px;
    }
    .hero-proj-card {
        flex: 0 0 168px;
        width: 168px;
    }
    .hero-proj-meta { padding: 7px 8px 9px; }
    .hero-proj-title { font-size: 12px; }
    .hero-proj-time { font-size: 10px; }
    .hero-proj-action { font-size: 10px; }
    .hero-proj-thumb-new span { font-size: 24px; }

    /* taleg word区域 */
    .inspire-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .inspire-search-box { margin-left: 0; }
    .inspire-search-box input { width: 100%; box-sizing: border-box; }
    .inspire-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .inspire-tabs::-webkit-scrollbar { display: none; }
    .tab-pill { white-space: nowrap; flex-shrink: 0; padding: 5px 12px; font-size: 12px; }

    /* 卡片网格 — 单列 */
    .inspire-cards { grid-template-columns: 1fr !important; gap: 12px; }
    .inspire-sec { padding: 0 12px 36px; }

    /* 卡片内：隐藏用户昵称，节省空间 */
    .card-body { padding: 10px 12px 12px; }
    .card-title { font-size: 13.5px; margin-bottom: 6px; }
    .card-author-name { display: none !important; }   /* 隐藏昵称文字 */
    .card-avatar { width: 18px; height: 18px; font-size: 9px; }
    .card-stat { font-size: 10.5px; }

    .home-content { padding-top: calc(var(--nav-h, 64px) + 24px); padding-left: 12px; padding-right: 12px; }

    /* 用户面板移动端适配 */
    .user-panel-overlay { padding-right: 12px; }
    .user-panel { width: calc(100% - 24px); max-width: 320px; }
}

/* 超小屏 (<400px) 进一步压缩 */
@media (max-width: 400px) {
    .hero-title { font-size: 19px; }
    /* 输入框高度增加以容纳工具栏 */
    .hero-input { min-height: 90px; padding: 11px 76px 36px 14px; font-size: 13px; }
    .hero-chip { font-size: 11px; padding: 6px 11px; }
    .tab-pill { padding: 4px 10px; font-size: 11.5px; }
    .inspire-sec { padding: 0 8px 28px; }
    /* 工具栏 - 超小屏紧凑布局 */
    .hero-bar { left: 12px; bottom: 8px; gap: 4px; }
    .agent-picker { font-size: 10.5px; padding: 3px 8px; gap: 3px; }
    .auto-pill { font-size: 10px; padding: 3px 7px; gap: 2px; }
    .hero-send-btn { width: 30px; height: 30px; right: 12px; bottom: 30%; transform: translateY(50%); }
    .hero-voice-btn { width: 30px; height: 30px; right: 46px; bottom: 30%; transform: translateY(50%); }
    /* .hero-input-wrap::after { right: 49px; bottom: 30%; transform: translateY(50%); height: 14px; } */
}
