/* 灵感中心样式（保持 Workspace 风格） */
.ideas-page {
    padding: 20px 24px 32px;
    background: #f8fafc;
    min-height: 100%;
}

.ideas-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ideas-hero-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ideas-hero-title h2 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
}

.ideas-hero-title p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.ideas-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 13px;
}

.ideas-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
}

.ideas-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.ideas-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
}

.ideas-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ideas-search input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ideas-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.ideas-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ideas-select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: #0f172a;
    min-width: 160px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ideas-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ideas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

.ideas-tag {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ideas-tag:hover {
    border-color: #6366f1;
    color: #4338ca;
}

.ideas-tag.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.idea-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.idea-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    overflow: hidden;
}

.idea-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idea-thumb .thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.idea-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idea-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.idea-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.idea-tag {
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

.idea-desc {
    display: none;
}

.idea-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.idea-actions button {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.idea-actions button:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.14);
}

.btn-primary-soft {
    background: rgba(99, 102, 241, 0.12);
    color: #1f2937;
    border: 1px solid rgba(99, 102, 241, 0.35);
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.btn-primary-soft:hover {
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.idea-prompt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.45;
    max-height: 110px;
    overflow: hidden;
    position: relative;
}

.idea-prompt[data-expanded="true"] {
    max-height: none;
}

.idea-prompt-toggle {
    border: none;
    background: none;
    color: #6366f1;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-top: -6px;
}

.ideas-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 8px;
}

.ideas-pagination button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    min-width: 90px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ideas-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ideas-pagination button:not(:disabled):hover {
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.12);
}

.ideas-page-info {
    font-size: 13px;
    color: #475569;
}

.ideas-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #fff;
    padding: 28px;
    text-align: center;
    color: #475569;
}

.ideas-sentinel {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.ideas-loader {
    font-size: 24px;
    color: #6366f1;
}

.ideas-toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    z-index: 6000;
    animation: toastIn 0.25s ease;
}

@keyframes toastIn {
    from {
        transform: translateY(8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 预览弹窗 */
.idea-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 7000;
    padding: 16px;
    overflow-y: auto;
}

.idea-modal-overlay.show {
    display: flex;
}

.idea-modal {
    background: #fff;
    border-radius: 20px;
    width: min(960px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.idea-modal__media {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    max-height: 60vh;
}

.idea-modal__media img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.idea-modal__body {
    padding: 18px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 92vh;
    overflow-y: auto;
    padding-bottom: 72px;
}

.idea-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.idea-modal__title {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

.idea-modal__prompt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.5;
    max-height: 320px;
    overflow: auto;
}

.idea-modal__footer {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
}

.idea-modal__footer button {
    flex: 1;
}

.idea-modal__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 960px) {
    .idea-modal {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        width: 96vw;
        max-height: 92vh;
    }

    .idea-modal__media {
        max-height: 50vh;
    }

    .idea-modal__media img {
        max-height: 50vh;
    }

    .idea-modal__body {
        flex: 1;
        max-height: none;
        padding: 12px 12px 10px;
        padding-bottom: 70px;
    }

    .idea-modal__footer {
        padding-bottom: 10px;
        gap: 8px;
        position: sticky;
        bottom: 0;
    }
}

.idea-modal-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ideas-page {
        padding: 12px 14px 20px;
    }

    .ideas-hero {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .ideas-toolbar {
        display: grid;
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
        gap: 8px;
        align-items: center;
        margin-bottom: 8px;
    }

    .ideas-search {
        width: 100%;
        min-width: 0;
        grid-column: 1 / 4;
    }

    .ideas-filters {
        width: 100%;
        gap: 8px;
        display: contents;
    }

    .ideas-select {
        width: 100%;
        min-width: 0;
    }

    .ideas-tags {
        gap: 8px;
    }
}