/* ===================== 筛选看板页面（买卖信号） ===================== */
/* 颜色与首页 / risk 对齐：主色 #6366F1 紫蓝渐变；上涨 #e63946 红，下跌 #2a9d5c 绿 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f5f6fa;
    color: #303133;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* 主内容 */
.shaixuan-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================== 空态与提示态 ===================== */
.state-panel {
    background: #fff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 40px auto;
    max-width: 480px;
}
.state-emoji { font-size: 64px; margin-bottom: 16px; }
.state-panel h2 { font-size: 20px; color: #303133; margin-bottom: 12px; }
.state-panel p { color: #909399; margin-bottom: 24px; }

.empty-big {
    background: #fff;
    border-radius: 16px;
    padding: 100px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 40px 0;
}
.empty-big .empty-emoji { font-size: 72px; margin-bottom: 16px; }
.empty-big .empty-title { font-size: 22px; color: #303133; font-weight: 600; margin-bottom: 8px; }
.empty-big .empty-text { color: #909399; font-size: 14px; }

/* ===================== 顶部总览 ===================== */
.overview {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ov-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ov-title .emoji { font-size: 22px; }
.ov-date { font-weight: 400; opacity: 0.85; font-size: 15px; }

.ov-sub {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}
.ov-sub b { font-weight: 700; font-size: 15px; }
.buy-num  { color: #fff59d; }
.sell-num { color: #ffcdd2; }

.scope-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.22);
}
.scope-tag.admin { background: #ffd54f; color: #5d4037; }

/* 日期选择器在紫色背景下微调 */
.ov-right :deep(.el-input__wrapper) {
    background: rgba(255,255,255,0.18);
    box-shadow: none;
    border-radius: 8px;
}
.ov-right :deep(.el-input__inner) { color: #fff; }
.ov-right :deep(.el-input__inner::placeholder) { color: rgba(255,255,255,0.7); }

/* ===================== Tab 切换 ===================== */
.tab-bar {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tabs {
    display: flex;
    gap: 8px;
}
.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fb;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.tab-item:hover:not(.disabled) {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.tab-item.active {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.tab-item.active :deep(.el-tag) {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}
.tab-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.tab-item .tab-ic { font-size: 16px; }
.tab-zero {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f1f3f4;
    color: #9ca3af;
}

/* ===================== 股票卡片 ===================== */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.empty-state {
    background: #fff;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}
.empty-state .empty-emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { color: #909399; font-size: 14px; }

.stock-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ebeef5;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.stock-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.stock-card.side-buy  { border-left: 4px solid #10B981; }
.stock-card.side-sell { border-left: 4px solid #EF4444; }

.stock-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    cursor: pointer;
}
.stock-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.side-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.side-badge.buy  { background: #d1fae5; color: #065f46; }
.side-badge.sell { background: #fee2e2; color: #991b1b; }

.stock-name {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-name:hover { color: #4F46E5; }
.stock-code { font-size: 12px; color: #909399; font-weight: 400; }

.stars-top {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 13px;
    margin-left: 6px;
}

/* 行情 */
.stock-quote {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
    min-width: 220px;
    justify-content: flex-end;
}
.quote-price { font-size: 17px; font-weight: 700; }
.quote-pct   { font-size: 13px; font-weight: 600; }
.quote-mv    { font-size: 12px; color: #909399; margin-left: 6px; }
.quote-empty .quote-pct { color: #c0c4cc; }

.quote-price.up-text, .quote-pct.up-text { color: #e63946; }
.quote-price.down-text, .quote-pct.down-text { color: #2a9d5c; }
.quote-price.flat-text, .quote-pct.flat-text { color: #606266; }

.up-text { color: #e63946; }
.down-text { color: #2a9d5c; }

.stock-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.hit-count {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.hit-count.buy-cnt  { background: #d1fae5; color: #065f46; }
.hit-count.sell-cnt { background: #fee2e2; color: #991b1b; }

.expand-icon {
    color: #909399;
    transition: transform 0.25s;
}
.expand-icon.is-open { transform: rotate(180deg); }

/* ===================== 卡片展开详情 ===================== */
.stock-card-body {
    padding: 0 18px 16px;
    border-top: 1px dashed #ebeef5;
    background: #fafbfc;
}

.quote-detail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    border: 1px solid #ebeef5;
}
.qd-item { display: flex; flex-direction: column; gap: 2px; }
.qd-label { font-size: 11px; color: #909399; }
.qd-v { font-size: 13px; font-weight: 600; color: #303133; }

.signal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.signal-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #ebeef5;
    border-left: 3px solid #10B981;
}
.signal-item.sell-item { border-left-color: #EF4444; }

.sig-line1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.sig-icon { font-size: 14px; }
.sig-name { font-weight: 600; color: #303133; font-size: 14px; }
.sig-cat  {
    font-size: 11px;
    color: #4F46E5;
    background: #eef2ff;
    padding: 1px 8px;
    border-radius: 10px;
}
.sig-code {
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    font-size: 12px;
    color: #7c3aed;
    background: #f3f0ff;
    padding: 1px 6px;
    border-radius: 4px;
}
.sig-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 12px;
}
.sig-time {
    margin-left: auto;
    font-size: 11px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.sig-desc {
    color: #606266;
    font-size: 13px;
    margin: 4px 0;
    line-height: 1.6;
}

.sig-suggestion {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.sig-suggestion.buy-suggest  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sig-suggestion.sell-suggest { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.card-foot {
    text-align: right;
    margin-top: 10px;
}
.detail-link {
    font-size: 12px;
    color: #4F46E5;
    text-decoration: none;
}
.detail-link:hover { text-decoration: underline; }

/* ===================== 展开动画 ===================== */
.slide-fade-enter-active, .slide-fade-leave-active {
    transition: all 0.25s ease;
}
.slide-fade-enter-from, .slide-fade-leave-to {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

/* ===================== 尾部说明 ===================== */
.foot-tips {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    border: 1px solid #ebeef5;
}
.foot-tips h4 {
    font-size: 14px;
    color: #4F46E5;
    margin-bottom: 10px;
}
.foot-tips ul {
    list-style: disc;
    padding-left: 22px;
    color: #606266;
    font-size: 12px;
    line-height: 2;
}
.foot-tips b { color: #4F46E5; }

/* ===================== 分页加载提示 ===================== */
.load-more-tip {
    text-align: center;
    padding: 18px 0 8px;
    font-size: 13px;
    color: #6b7280;
    letter-spacing: .3px;
    user-select: none;
}
.load-more-tip .lm-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366F1;
    margin-right: 6px;
    vertical-align: middle;
    animation: lm-pulse 1.2s ease-in-out infinite;
}
.load-more-tip .lm-end {
    color: #9ca3af;
}
@keyframes lm-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

/* ===================== 响应式 ===================== */
@media (max-width: 768px) {
    .shaixuan-main { padding: 12px; }
    .overview { padding: 14px 16px; }
    .ov-title { font-size: 16px; }
    .tab-item { padding: 10px 12px; font-size: 13px; }
    .stock-card-head { flex-wrap: wrap; gap: 8px; }
    .stock-main { width: 100%; order: 1; }
    .stock-quote { min-width: auto; margin-left: auto; order: 2; }
    .stock-actions { order: 3; }
    .quote-detail {
        grid-template-columns: repeat(3, 1fr);
    }
    .sig-line1 { gap: 6px; }
    .sig-time { margin-left: 0; width: 100%; order: 99; }
}
