/* ===== 共创屋（独立页面） ===== */
.ideas-page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 1.5rem;
}

/* ===== 标签导航（sticky，全宽，左对齐 + 右侧描述） ===== */
.ideas-tabs {
    position: sticky;
    top: 72px;
    z-index: 90;
    padding: 10px 0 12px;
    margin-bottom: 0;
    background: var(--primary);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.ideas-tabs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.ideas-tabs-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ideas-tabs-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin-right: 80px;
}
.ideas-publish-btn {
    display: none;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    border: none;
    background: var(--accent);
    color: #000;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    z-index: 91;
    transition: box-shadow 0.2s;
}
.ideas-publish-btn:hover {
    box-shadow: 0 4px 16px rgba(32,201,151,0.35);
}
.ideas-publish-btn.visible {
    display: inline-flex;
}
.ideas-tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ideas-tab:hover {
    color: var(--text-secondary);
    background: rgba(128,128,128,0.06);
}
.ideas-tab.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(32,201,151,0.3);
}
.ideas-tab-count {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.65;
    margin-left: 2px;
}
/* 极简白主题适配 */
[data-theme="minimal"] .ideas-tabs {
    background: rgba(248,249,250,0.95);
    border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="minimal"] .ideas-tab:hover {
    background: rgba(0,0,0,0.04);
}
[data-theme="minimal"] .ideas-tab.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}

/* ===== 内容区 ===== */
.ideas-content {
    min-height: 200px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 24px 0;
}
.ideas-loading, .ideas-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== 分区标签 ===== */
.ideas-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.ideas-section-label i { font-size: 0.8rem; }

/* ===== 精选置顶网格 ===== */
.ideas-pinned-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* ===== 想法卡片 ===== */
.ideas-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.idea-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.idea-card:hover {
    border-color: rgba(32,201,151,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* 顶部渐变条 */
.idea-card-bar {
    height: 3px;
}
.idea-card-bar.bar-idea {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.idea-card-bar.bar-demand {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

/* 卡片头部 */
.idea-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 0;
}

/* 头像（彩色圆形，非图片） */
.idea-card-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}
.idea-card-avatar-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.idea-card-avatar-circle.avatar-idea {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}
.idea-card-avatar-circle.avatar-demand {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.idea-card-user-info {
    flex: 1;
    min-width: 0;
}
.idea-card-username {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}
.idea-card-ts {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 类型标签 */
.idea-card-type {
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.idea-card-type.type-idea {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
}
.idea-card-type.type-demand {
    background: rgba(96,165,250,0.12);
    color: #60a5fa;
}

/* 置顶标识 */
.idea-card-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
}

/* 来源标签 */
.idea-card-source {
    font-size: 0.6rem;
    color: var(--text-muted);
    background: rgba(95,181,147,0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

/* 内容区域 */
.idea-card-body {
    padding: 12px 16px;
}
.idea-card-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    word-break: break-word;
}
/* 文字折叠 */
.idea-card-content.clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}
.idea-card-content.clamp.open {
    -webkit-line-clamp: unset;
}
.idea-card-more-link {
    font-size: 0.82rem;
    color: var(--accent);
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

/* 卡片标签区（任务标签等，位于图片下方） */
.idea-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 16px 0;
}
.idea-card-task-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(32,201,151,0.08);
    color: var(--accent);
}

/* 图片网格 — 统一缩略图尺寸，不超过3图铺满时的单个格子大小 */
.idea-card-images {
    padding: 4px 16px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.idea-card-images img {
    display: block;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s;
}
.idea-card-images img:hover {
    opacity: 0.85;
}

/* 操作按钮区 */
.idea-card-footer {
    display: flex;
    align-items: center;
    padding: 6px 8px 12px;
}
.idea-like-btn, .idea-vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.idea-like-btn:hover, .idea-vote-btn:hover {
    background: rgba(128,128,128,0.06);
}
.idea-like-btn.liked {
    color: #fb7185;
}
.idea-like-btn.liked i {
    animation: likeAnim 0.35s ease;
}
.idea-vote-btn.voted {
    color: var(--accent);
    font-weight: 600;
}
@keyframes likeAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== 需求卡片（横向布局） ===== */
.demand-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.idea-card.demand-card-layout {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    cursor: default;
}
.idea-card.demand-card-layout:hover {
    transform: translateY(-1px);
}
.idea-card.demand-card-pinned {
    border-left: 4px solid var(--accent);
}

.demand-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.demand-status.status-discuss { background: rgba(251,191,36,0.12); color: #fbbf24; }
.demand-status.status-adopt { background: rgba(32,201,151,0.12); color: #20c997; }

.demand-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.demand-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}
.demand-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.demand-info .idea-card-task-tag {
    margin-top: 2px;
}
.demand-info .idea-card-tags {
    padding: 0;
}

.demand-vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 60px;
}
.demand-vote-count {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent);
}
.demand-vote-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.demand-vote-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.demand-vote-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.demand-vote-btn.voted {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ===== 活动占位 ===== */
.ideas-activity {
    text-align: center;
    padding: 3rem 1rem;
}
.ideas-activity-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.ideas-activity-tab {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ideas-activity-tab:hover {
    color: var(--text-secondary);
}
.ideas-activity-tab.active {
    border-color: transparent;
}
/* 活动子标签颜色 */
.ideas-activity-tab.tab-ren.active { background: linear-gradient(135deg, #ff6b35, #f7931e); color: #fff; }
.ideas-activity-tab.tab-ji.active { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.ideas-activity-tab.tab-rj.active { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }

.ideas-activity-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 领地争夺战活动卡片 ===== */
.war-event-card {
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(165deg, #070e1a 0%, #0d1a30 35%, #0f1f3a 70%, #132445 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(59,130,246,.18);
    box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: left;
    color: #e2e8f0;
    position: relative;
}
.war-event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 20% 0%, rgba(59,130,246,.06) 0%, transparent 60%),
                radial-gradient(ellipse 50% 50% at 85% 100%, rgba(239,68,68,.04) 0%, transparent 60%);
    pointer-events: none;
}
.war-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06), 0 0 40px rgba(59,130,246,.1);
}

/* --- Top Banner: era dispatch --- */
.war-banner {
    position: relative;
    padding: 22px 28px 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.war-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(59,130,246,.35);
    margin-top: 2px;
}
.war-banner-body { flex: 1; }
.war-banner-body h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: .3px;
}
.war-banner-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    color: #60a5fa;
    font-weight: 600;
}
.war-banner-sub .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #334155;
}

/* --- Hook line --- */
.war-hook {
    position: relative;
    padding: 0 28px 20px;
}
.war-hook-text {
    font-size: .92rem;
    line-height: 1.75;
    color: #cbd5e1;
    border-left: 3px solid rgba(59,130,246,.4);
    padding-left: 14px;
}
.war-hook-text strong { color: #93c5fd; font-weight: 700; }
.war-hook-text .ai-red { color: #f87171; font-weight: 700; }
.war-hook-text .human-blue { color: #60a5fa; font-weight: 700; }

/* --- Divider with glow --- */
.war-divider {
    height: 1px;
    margin: 0 28px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,.2) 30%, rgba(59,130,246,.2) 70%, transparent);
}

/* --- Stats row --- */
.war-stats {
    position: relative;
    display: flex;
    padding: 16px 28px;
    gap: 0;
}
.war-stat-item {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    border-radius: 12px;
    transition: background .2s;
}
.war-stat-item + .war-stat-item {
    border-left: 1px solid rgba(59,130,246,.1);
}
.war-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.war-stat-val.ai-color {
    background: linear-gradient(135deg, #f87171, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.war-stat-label {
    font-size: .68rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: .3px;
}

/* --- How to play: 3-step visual --- */
.war-how {
    position: relative;
    padding: 18px 28px 20px;
}
.war-how-title {
    font-size: .7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.war-steps {
    display: flex;
    gap: 12px;
}
.war-step {
    flex: 1;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(30,58,95,.35);
    border: 1px solid rgba(59,130,246,.08);
    text-align: center;
    transition: border-color .2s;
}
.war-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59,130,246,.15);
    color: #60a5fa;
    font-size: .7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.war-step-icon {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.war-step-text {
    font-size: .75rem;
    color: #94a3b8;
    line-height: 1.5;
}
.war-step-text b {
    color: #cbd5e1;
    font-weight: 700;
}

/* --- Era timeline --- */
.war-eras {
    position: relative;
    padding: 16px 28px 18px;
}
.war-eras-label {
    font-size: .68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.war-eras-track {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}
.war-eras-track::-webkit-scrollbar { display: none; }
.war-era-dot {
    flex-shrink: 0;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 600;
    background: rgba(30,58,95,.5);
    color: #64748b;
    border: 1.5px solid rgba(59,130,246,.1);
    white-space: nowrap;
    transition: all .2s;
}
.war-era-dot.passed {
    background: rgba(59,130,246,.15);
    border-color: rgba(59,130,246,.3);
    color: #64748b;
}
.war-era-dot.current {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 0 12px rgba(59,130,246,.35);
    font-weight: 700;
}
.war-era-connector {
    display: none;
}

/* --- Footer / CTA --- */
.war-footer {
    position: relative;
    padding: 18px 28px;
    border-top: 1px solid rgba(59,130,246,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.war-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.war-footer-meta span {
    font-size: .68rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}
.war-footer-meta .dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,.4);
}
.war-btn {
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    letter-spacing: .3px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    flex-shrink: 0;
}
.war-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 6px 24px rgba(59,130,246,.45);
    transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .war-banner { padding: 18px 20px 14px; }
    .war-hook { padding: 0 20px 16px; }
    .war-stats { padding: 14px 20px; }
    .war-how { padding: 14px 20px 16px; }
    .war-steps { flex-direction: column; gap: 8px; }
    .war-step { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 14px; }
    .war-step-icon { margin-bottom: 0; font-size: 1.1rem; }
    .war-eras { padding: 14px 20px 16px; }
    .war-footer { padding: 14px 20px; flex-direction: column; align-items: stretch; }
    .war-btn { text-align: center; }
    .war-era-dot { height: 24px; padding: 0 8px; font-size: .58rem; }
    .war-divider { margin: 0 20px; }
}
}
.ideas-activity-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ===== 游客提示 ===== */
.ideas-guest-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-top: 16px;
    border-radius: 14px;
    background: rgba(128,128,128,0.03);
    border: 1px dashed rgba(32,201,151,0.2);
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ideas-guest-hint:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.ideas-guest-hint i {
    color: var(--accent);
}

/* ===== FAB 浮动按钮 ===== */
.ideas-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 4px 25px rgba(32,201,151,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}
.ideas-fab.visible {
    display: flex;
}
.ideas-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 35px rgba(32,201,151,0.5);
}

/* ===== 回到顶部 ===== */
.ideas-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg, rgba(255,255,255,0.9));
    color: var(--text-secondary, #888);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
}
.ideas-back-to-top.visible {
    display: flex;
}
.ideas-back-to-top:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: var(--accent);
}

/* ===== 发布弹窗（横向布局） ===== */
.idea-publish-modal {
    max-width: 680px;
    padding: 1.5rem 2rem;
    text-align: left;
}
.idea-pub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.idea-pub-type {
    display: flex;
    gap: 8px;
}
.idea-pub-type-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.idea-pub-type-opt.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(32, 201, 151, 0.06);
}
.idea-pub-type-opt input[type="radio"] {
    display: none;
}
.idea-pub-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.idea-pub-close:hover {
    color: var(--text-primary);
    background: rgba(128,128,128,0.1);
}
.idea-pub-body {
    display: flex;
    gap: 1.2rem;
}
.idea-pub-main {
    flex: 1;
    min-width: 0;
}
.idea-pub-main textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.88rem;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}
.idea-pub-main textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.idea-pub-main textarea::placeholder {
    color: var(--text-muted);
}
.idea-pub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.75rem;
}
.idea-pub-contribution {
    color: var(--accent);
    font-weight: 600;
}
.idea-pub-count {
    color: var(--text-muted);
}
.idea-pub-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}
.idea-pub-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.idea-pub-img-preview {
    position: relative;
    width: 64px;
    height: 64px;
}
.idea-pub-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.idea-pub-img-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.idea-pub-img-add {
    width: 100%;
    min-height: 60px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    font-size: 0.75rem;
}
.idea-pub-img-add i {
    font-size: 1rem;
}
.idea-pub-img-add:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.idea-pub-submit {
    width: 100%;
}

/* ===== Toast 提示 ===== */
.ideas-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: ideasToastIn 0.3s ease;
}
.ideas-toast i { color: var(--accent); }
.ideas-toast-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.ideas-toast-link:hover { text-decoration: underline; }
@keyframes ideasToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 首页动态预览 ===== */
.stories-footer {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.stories-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.stories-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.stories-more-btn:hover {
    background: rgba(32, 201, 151, 0.06);
    border-color: var(--accent);
}

/* 首页想法预览卡片 */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .ideas-pinned-grid { grid-template-columns: 1fr; }
    .ideas-tab { padding: 8px 14px; font-size: 0.82rem; }
    .idea-card.demand-card-layout { flex-wrap: wrap; }
    .demand-vote-section { flex-direction: row; gap: 10px; width: 100%; justify-content: flex-end; }
    .ideas-fab { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 1.1rem; }
    .ideas-publish-btn { padding: 6px 12px; font-size: 0.78rem; }
    .ideas-tabs-desc { display: none; }
    .idea-publish-modal { max-width: 95vw; padding: 1.2rem; }
    .idea-pub-body { flex-direction: column; }
    .idea-pub-side { min-width: 0; flex-direction: row; align-items: center; }
    .idea-pub-img-add { min-height: 48px; width: auto; flex-direction: row; padding: 8px 16px; }
}
@media (max-width: 480px) {
    .ideas-tabs-left { gap: 4px; }
    .ideas-tab { padding: 6px 10px; font-size: 0.78rem; gap: 4px; }
    .stories-grid { grid-template-columns: 1fr; }
}

/* ===== 图片预览模态 ===== */
.idea-img-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: idea-fade-in 0.2s ease;
}
@keyframes idea-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.idea-img-preview-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    cursor: default;
}
.idea-img-preview-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}
.idea-img-preview-close:hover {
    color: #fff;
}
.ideas-load-more-btn {
    display: block;
    width: 200px;
    margin: 2rem auto 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.ideas-load-more-btn:hover {
    border-color: var(--accent, #6c5ce7);
    color: var(--accent, #6c5ce7);
    background: var(--accent-light, #f0edff);
}
