/* ═══ 种子经济 / 反向生产 · 增强 UI ═══ */

/* ─── 资产概览卡片 ─── */
.eco-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.eco-asset-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.eco-asset-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 148, 136, 0.35);
}
.eco-asset-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.eco-asset-icon--seed { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.eco-asset-icon--credit { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.eco-asset-icon--liquid { background: linear-gradient(135deg, #ccfbf1, #5eead4); }
.eco-asset-icon--member { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.eco-asset-body { min-width: 0; }
.eco-asset-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.eco-asset-value { font-size: 20px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.eco-asset-value small { font-size: 13px; font-weight: 500; color: var(--muted); }

.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.eco-badge--member {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.eco-badge--guest {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ─── 政策说明卡 ─── */
.eco-policy-card {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(153, 246, 228, 0.6);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
    line-height: 1.75;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.eco-policy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-glow), var(--primary-light));
}
.eco-policy-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.eco-policy-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.eco-policy-title { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin: 0 0 4px; }
.eco-policy-block {
    padding: 10px 14px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 3px solid var(--primary-light);
    font-size: 13px;
    color: var(--muted);
}
.eco-policy-block strong { color: var(--text); }

/* ─── 链路步骤 ─── */
.eco-pipeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.eco-pipe-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.eco-pipe-step:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}
.eco-pipe-step.ready { border-left: 4px solid #0f766e; }
.eco-pipe-step.blocked { border-left: 4px solid #94a3b8; opacity: 0.88; }
.eco-pipe-step.idle { border-left: 4px solid #d97706; }
.eco-pipe-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: rgba(13, 148, 136, 0.08);
}
.eco-pipe-step.ready .eco-pipe-icon { background: rgba(16, 185, 129, 0.15); }
.eco-pipe-step.blocked .eco-pipe-icon { background: rgba(148, 163, 184, 0.15); filter: grayscale(0.4); }
.eco-pipe-step.idle .eco-pipe-icon { background: rgba(251, 191, 36, 0.15); }
.eco-pipe-body { flex: 1; min-width: 0; }
.eco-pipe-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.eco-status-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eco-status-tag.ready { background: rgba(16, 185, 129, 0.15); color: #047857; }
.eco-status-tag.blocked { background: rgba(148, 163, 184, 0.2); color: #64748b; }
.eco-status-tag.idle { background: rgba(251, 191, 36, 0.2); color: #b45309; }
.eco-pipe-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── 分区标题 ─── */
.eco-section {
    margin-top: 28px;
    margin-bottom: 14px;
}
.eco-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(13, 148, 136, 0.15);
}
.eco-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.eco-section-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    border: none;
    padding: 0;
}

/* ─── 表单区 ─── */
.eco-form-panel {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 20px;
    max-width: 520px;
    box-shadow: var(--shadow);
}
.eco-form-panel label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin: 12px 0 6px;
}
.eco-form-panel label:first-child { margin-top: 0; }
.eco-form-panel input,
.eco-form-panel select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.eco-form-panel input:focus,
.eco-form-panel select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.eco-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* ─── 预览 / 提示卡 ─── */
.eco-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.eco-alert-icon { font-size: 20px; flex-shrink: 0; }
.eco-alert--warn {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    color: #92400e;
}
.eco-alert--info {
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
    border: 1px solid #99f6e4;
    color: #115e59;
}
.eco-preview-card {
    margin-top: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 14px;
    line-height: 1.65;
}
.eco-preview-card .warn { color: #9a3412; font-weight: 600; margin-top: 10px; }

/* ─── 清算账本 ─── */
.eco-flow-chain {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
    align-items: center;
}
.eco-flow-node {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: transform 0.2s, box-shadow 0.2s;
}
.eco-flow-node:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow);
}
.eco-flow-node span:first-child { font-size: 16px; }
.eco-flow-arrow { color: var(--muted); font-size: 14px; }
.eco-ledger-card {
    padding: 16px 18px;
    margin-top: 12px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.eco-ledger-card:hover { box-shadow: var(--shadow-hover); }
.eco-ledger-title { font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.eco-ledger-meta { font-size: 13px; color: var(--muted); }
.eco-match-ok { color: #059669; font-weight: 600; }
.eco-match-bad { color: #dc2626; font-weight: 600; }

/* ─── 持仓列表 ─── */
.eco-holding-list { list-style: none; padding: 0; margin: 0; }
.eco-holding-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    transition: border-color 0.2s, transform 0.2s;
}
.eco-holding-item:hover {
    border-color: rgba(13, 148, 136, 0.35);
    transform: translateX(3px);
}
.eco-holding-item::before {
    content: '📊';
    font-size: 18px;
}

/* ─── 页面头 ─── */
.eco-page-hero {
    margin-bottom: 24px;
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,253,250,0.9) 100%);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.eco-page-hero::after {
    content: '🌱';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 64px;
    opacity: 0.12;
    pointer-events: none;
}
.eco-page-hero .panel-tag { color: var(--primary); font-weight: 700; }
.eco-page-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.eco-page-hero p { margin: 0; color: var(--muted); font-size: 14px; max-width: 680px; line-height: 1.65; }

/* ─── 反向生产增强 ─── */
.rp-tabs button,
.product-switch button {
    transition: all 0.22s ease;
}
.rp-tabs button:hover:not(.active) {
    border-color: var(--primary-light);
    background: rgba(13, 148, 136, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}
.product-switch button:hover:not(.active) {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.product-switch button.active,
.rp-tabs button.active {
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.lot-card, .order-card, .event-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lot-card:hover, .order-card:hover, .event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.stage-chip {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.stage-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
