/* user_shares 样式片段 2/4 — 按规则边界切分 */
.monthly-change-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 4px;
}

.monthly-change-title i {
    color: #1a56a7;
    font-size: 16px;
}

.change-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-value.positive {
    color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.change-value.negative {
    color: #dc3545;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.change-value.zero {
    color: #6c757d;
}

.change-info {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.change-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(26, 86, 167, 0.1);
    min-width: 120px;
    transition: all 0.3s ease;
}

.change-info-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(26, 86, 167, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 167, 0.1);
}

.change-info-label {
    font-size: 11px;
    color: #868e96;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.change-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a56a7;
}

.change-info-value.change-info-drawdown.negative {
    color: var(--color-down);
}

.change-info-value.change-info-drawdown.zero {
    color: #6c757d;
}

/* 本月收益信息卡优化：增强层级与可读性 */
#monthly-change-container .monthly-change-display {
    width: 100%;
    max-width: 860px;
    gap: 14px;
}

#monthly-change-container .monthly-change-title {
    margin-bottom: 0;
}

#monthly-change-container .change-value {
    margin: 2px 0 6px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: none;
}

#monthly-change-container .monthly-metrics-grid {
    width: 100%;
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    justify-items: stretch;
    margin-top: 2px;
}

#monthly-change-container .monthly-metrics-grid .metric-item {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(26, 86, 167, 0.14);
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(26, 86, 167, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: box-shadow .2s ease, border-color .2s ease;
}

#monthly-change-container .monthly-metrics-grid .metric-item:hover {
    transform: none;
    border-color: rgba(26, 86, 167, 0.2);
    box-shadow: 0 2px 8px rgba(26, 86, 167, 0.08);
}

#monthly-change-container .monthly-metrics-grid .metric-item .change-info-label {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: #5f6b7a;
    line-height: 1.3;
    text-align: left;
    flex: 1;
}

#monthly-change-container .monthly-metrics-grid .metric-item .change-info-value {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
    min-width: 72px;
}

#monthly-change-container .monthly-metrics-grid .metric-drawdown {
    border-color: rgba(185, 28, 28, 0.18);
    border-left: 3px solid rgba(185, 28, 28, 0.55);
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(185, 28, 28, 0.04);
}

#monthly-change-container .change-value.positive {
    color: #059669;
    background: none;
    -webkit-text-fill-color: initial;
}

#monthly-change-container .change-value.negative {
    color: #dc2626;
    background: none;
    -webkit-text-fill-color: initial;
}

#monthly-change-container .change-value.zero {
    color: #475569;
    text-shadow: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .monthly-change-container {
        padding: 20px 15px;
    }
    
    .monthly-change-title {
        font-size: 14px;
    }
    
    .monthly-change-title i {
        font-size: 14px;
    }
    
    .change-value {
        font-size: 32px;
    }
    
    .change-info {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .change-info-item {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        border-radius: 8px;
    }
    
    #monthly-change-container .monthly-metrics-grid {
        max-width: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #monthly-change-container .monthly-metrics-grid .metric-item {
        padding: 10px 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    #monthly-change-container .change-value {
        font-size: 32px;
    }
    
    #monthly-change-container .monthly-metrics-grid .metric-item .change-info-label {
        text-align: center;
        font-size: 10px;
    }
    
    #monthly-change-container .monthly-metrics-grid .metric-item .change-info-value {
        text-align: center;
        font-size: 15px;
        min-width: 0;
    }
    
    .change-info-label {
        font-size: 10px;
        line-height: 1.3;
        word-break: break-word;
        text-align: center;
    }
    
    .change-info-value {
        font-size: 14px;
        text-align: center;
        white-space: nowrap; /* 数字不换行 */
        font-variant-numeric: tabular-nums;
    }
}

@media (max-width: 480px) {
    .monthly-change-container {
        padding: 16px 12px;
    }
    
    .monthly-change-display {
        gap: 10px;
    }
    
    .monthly-change-title {
        font-size: 13px;
    }
    
    .change-value {
        font-size: 28px;
        margin: 4px 0;
    }
    
    .change-info {
        display: flex;
        flex-direction: row;
        gap: 6px;
        width: 100%;
        justify-content: space-between;
    }
    
    #monthly-change-container .monthly-metrics-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #monthly-change-container .monthly-metrics-grid .metric-drawdown {
        grid-column: 1 / -1;
    }

    #monthly-change-container .change-value {
        font-size: 28px;
    }
    
    .change-info-item {
        flex: 1;
        min-width: 0;
        padding: 8px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .change-info-item:hover {
        transform: none; /* 移动端禁用hover效果 */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .change-info-label {
        font-size: 9px;
        text-align: center;
        color: #6c757d;
        font-weight: 500;
        line-height: 1.2;
        word-break: break-word;
        white-space: normal;
    }
    
    .change-info-value {
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        color: #1a56a7;
        line-height: 1.2;
        white-space: nowrap; /* 数字不换行 */
    }
    
    /* 针对"最大回撤"一项：保证数字单行、不被挤压 */
    .change-info-item:nth-child(3) {
        min-width: 0; /* 允许 flex 收缩，但配合下面 value 不换行 */
    }
    
    .change-info-item:nth-child(3) .change-info-value {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        min-width: 3em; /* 如 -12.34% 约 3em */
    }
    
    /* 针对"最大回撤"标签的特殊处理 */
    .change-info-item:nth-child(3) .change-info-label {
        font-size: 8px;
    }
}

/* 超小屏幕优化（360px以下） */
@media (max-width: 360px) {
    .monthly-change-container {
        padding: 14px 10px;
    }
    
    .monthly-change-title {
        font-size: 12px;
    }
    
    .change-value {
        font-size: 24px;
    }
    
    .change-info {
        gap: 4px;
    }
    
    .change-info-item {
        padding: 6px 4px;
    }
    
    .change-info-label {
        font-size: 8px;
    }
    
    .change-info-value {
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* 最大回撤数字单行，必要时缩小字号 */
    .change-info-item:nth-child(3) .change-info-value {
        white-space: nowrap;
        font-size: 11px;
        font-variant-numeric: tabular-nums;
    }
    
    /* 针对"最大回撤"标签的特殊处理 */
    .change-info-item:nth-child(3) .change-info-label {
        font-size: 7px;
    }
}

.share-change.zero {
    color: #6c757d;
}

/* 股票统计信息 - 参考test_user_shares.html优化 */
.share-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    color: #6c757d;
}

.share-stats .stat-value {
    font-weight: 500;
}

.share-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    gap: 0.3rem;
    padding-top: 0.3rem;
}
/* 网格模式下使用底部浮现操作栏，隐藏原操作区 */
.shares-grid .share-card .share-actions {
    display: none !important;
}

/* 加入日期样式 - 语义化显示，位于股票名称右侧 */
.added-date {
    display: inline-block;
    margin-left: 6px;
    color: #9ca3af;
    font-size: 12px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: baseline;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.share-name:hover .added-date {
    opacity: 1;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .added-date {
        font-size: 11px;
        margin-left: 4px;
    }
}

/* 卡片内小按钮 - 轻量化设计 */
.btn-refresh, .btn-remove, .btn-chart, .btn-analysis, .btn-trend {
    background: transparent;
    color: #666;
    border: 1px solid #e1e5eb;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh {
    color: #17a2b8;
    border-color: rgba(23, 162, 184, 0.3);
}

.btn-refresh:hover {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-remove {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.btn-remove:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-chart {
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.btn-chart:hover {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.btn-analysis {
    color: #1a56a7;
    border-color: rgba(26, 86, 167, 0.3);
}

.btn-analysis:hover {
    background: rgba(26, 86, 167, 0.1);
    border-color: #1a56a7;
    color: #1a56a7;
}

.btn-trend {
    color: #6f42c1;
    border-color: rgba(111, 66, 193, 0.3);
}

.btn-trend:hover {
    background: rgba(111, 66, 193, 0.1);
    border-color: #6f42c1;
    color: #6f42c1;
}

/* 趋势评分弹窗样式 */
#trend-score-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#trend-score-modal.fade-in {
    opacity: 1;
    visibility: visible;
}

#trend-score-modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 500px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    transform: scale(0.7) translateY(-50px) rotateX(15deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

#trend-score-modal.fade-in .modal-content {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

#trend-score-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6f42c1 0%, #5a32a3 50%, #6f42c1 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

#trend-score-modal .modal-header {
    padding: 32px 36px 28px;
    border-bottom: 1px solid rgba(111, 66, 193, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    position: relative;
    overflow: hidden;
}

#trend-score-modal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

#trend-score-modal .modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: bold;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

#trend-score-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#trend-score-modal .modal-body {
    padding: 36px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.trend-score-display {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 16px;
    background: linear-gradient(145deg, #f7fafc 0%, #ffffff 100%);
    border: 1px solid rgba(111, 66, 193, 0.1);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.08);
}

.trend-score-value {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trend-level {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
}

/* 股票卡片中的趋势评分样式 */
.share-stats .trend-level {
    font-size: 0.65rem;
    color: #6c757d;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

/* 股票卡片中的趋势评分颜色样式 */
.share-stats .trend-level.strong-up {
    color: #28a745;
    background: transparent;
}

.share-stats .trend-level.steady-up {
    color: #17a2b8;
    background: transparent;
}

.share-stats .trend-level.moderate-up {
    color: #ffc107;
    background: transparent;
}

.share-stats .trend-level.weak-up {
    color: #fd7e14;
    background: transparent;
}

.share-stats .trend-level.no-trend {
    color: #6c757d;
    background: transparent;
}

.trend-level.strong-up {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.trend-level.steady-up {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.trend-level.moderate-up {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.trend-level.weak-up {
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
    color: white;
}

.trend-level.no-trend {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.trend-description {
    font-size: 16px;
    color: #495057;
    margin: 20px 0;
    line-height: 1.6;
}

/* 大单统计关闭按钮样式 - 现代化重新设计 */
.ddzz-close-btn {
    padding: 16px 40px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    display: block;
    margin: 32px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* 大单统计关闭按钮移动端优化 */
@media (max-width: 767px) {
    .ddzz-close-btn {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 140px;
        border-radius: 12px;
        margin: 24px auto 0;
    }
}

@media (max-width: 480px) {
    .ddzz-close-btn {
        padding: 10px 24px;
        font-size: 13px;
        min-width: 120px;
        border-radius: 10px;
        margin: 20px auto 0;
    }
}

.ddzz-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.ddzz-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.ddzz-close-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.ddzz-close-btn:hover::before {
    left: 100%;
}

.ddzz-close-btn:hover::after {
    width: 120px;
    height: 120px;
}

.ddzz-close-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.ddzz-close-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.ddzz-close-btn:hover i {
    transform: scale(1.1);
}

/* 大单统计按钮样式 - 现代化重新设计 */
.btn-ddzz {
    background: transparent;
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 大单统计按钮移动端优化 */
@media (max-width: 767px) {
    .btn-ddzz {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        height: 28px;
        min-width: 32px;
    }
}

@media (max-width: 480px) {
    .btn-ddzz {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
        height: 26px;
        min-width: 30px;
    }
}

.btn-ddzz:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

.btn-ddzz i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.btn-ddzz:hover i {
    transform: rotate(90deg);
}

/* 大单按钮加载状态 */
.btn-ddzz.loading {
    background: transparent;
    border-color: rgba(108, 117, 125, 0.3);
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-ddzz.loading i {
    animation: spin 1.2s linear infinite;
}

/* 大单按钮成功状态 */
.btn-ddzz.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

/* 按钮脉冲效果 */
.btn-ddzz.pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% { border-color: rgba(102, 126, 234, 0.3); }
    50% { border-color: rgba(102, 126, 234, 0.6); }
}

/* 大单统计弹窗样式 - 现代化重新设计 */
#ddzz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#ddzz-modal.fade-in {
    opacity: 1;
    visibility: visible;
}

#ddzz-modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    transform: scale(0.7) translateY(-50px) rotateX(15deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

#ddzz-modal.fade-in .modal-content {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

#ddzz-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#ddzz-modal .modal-header {
    padding: 32px 36px 28px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#ddzz-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: floatingLights 6s ease-in-out infinite;
}

@keyframes floatingLights {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

#ddzz-modal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

#ddzz-modal .modal-header h3 i {
    font-size: 20px;
    opacity: 0.9;
}

#ddzz-modal .modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: bold;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

#ddzz-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#ddzz-modal .modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

#ddzz-modal .modal-body {
    padding: 36px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 大单统计内容样式 - 现代化重新设计 */
.ddzz-stats h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a202c;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 血条样式 - 大单统计可视化 */
.health-bar-container {
    background: linear-gradient(145deg, #f7fafc 0%, #ffffff 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
}

.health-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.health-bar-title {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.health-bar-title i {
    font-size: 14px;
    opacity: 0.8;
}

.health-bar-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.health-bar {
    height: 100%;
    border-radius: 12px;
    position: relative;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.health-bar.buy-dominant {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    box-shadow: 0 0 20px rgba(56, 161, 105, 0.4);
}

.health-bar.sell-dominant {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.4);
}

.health-bar.balanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.health-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: healthBarShine 2s ease-in-out infinite;
}

@keyframes healthBarShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.health-bar-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.health-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
}

.health-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.health-bar-label.buy {
    color: #38a169;
}

.health-bar-label.sell {
    color: #e53e3e;
}

.health-bar-label i {
    font-size: 10px;
}

.health-bar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.health-stat-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.health-stat-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.health-stat-value {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.health-stat-value.buy {
    color: #38a169;
}

.health-stat-value.sell {
    color: #e53e3e;
}

.health-stat-value.net {
    color: #667eea;
}

.health-stat-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 血条动画效果 */
.health-bar-animate {
    animation: healthBarFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes healthBarFill {
    0% {
        width: 0%;
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.ddzz-stats h3::before {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.ddzz-stats h3::after {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.stat-item {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.08),
        0 1px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.2);
}

.stat-item:hover::after {
    width: 200px;
    height: 200px;
}

.stat-item h4 {
    margin: 0 0 20px 0;
    color: #667eea;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.stat-item p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4px 0;
}

.stat-item p strong {
    color: #1a202c;
    font-weight: 800;
    font-size: 16px;
}

.stat-item p .buy-amount {
    color: #38a169;
    font-weight: 800;
}

.stat-item p .sell-amount {
    color: #e53e3e;
    font-weight: 800;
}

/* 加载和错误状态优化 - 现代化设计 */
.ddzz-loading {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(145deg, #f7fafc 0%, #ffffff 100%);
    border-radius: 24px;
    margin: 20px 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
}

/* ========== 决策复盘区：主人双栏（反包 60% | 排行榜 40%），观赏链接下单列 ========== */
.user-shares-decision-zone {
    display: block;
    margin-bottom: 8px;
}

/* 观赏模式：隐藏左侧栏容器，排行榜独占全宽（与既有 .recovery 隐藏规则一致） */
body.is-shared-view .user-shares-decision-zone .decision-zone-recovery {
    display: none !important;
}

/* 主人视图且已开通反包：双栏网格 */
body:not(.is-shared-view) .user-shares-decision-zone:has(#recovery-module.admin-mode) {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px 20px;
    align-items: start;
}

body:not(.is-shared-view) .user-shares-decision-zone:has(#recovery-module.admin-mode) .decision-zone-recovery,
body:not(.is-shared-view) .user-shares-decision-zone:has(#recovery-module.admin-mode) .decision-zone-rankings {
    min-width: 0;
}

@media (max-width: 992px) {
    body:not(.is-shared-view) .user-shares-decision-zone:has(#recovery-module.admin-mode) {
        grid-template-columns: 1fr;
    }
}

.recovery-module-header {
    flex-direction: column;
    align-items: stretch !important;
}

/* 反包标题行 + 策略说明按钮 */
.recovery-module-header .recovery-module-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.recovery-module-header .recovery-module-header-row .shares-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.recovery-strategy-help-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.recovery-strategy-help-btn:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
}

.recovery-strategy-help-btn:focus {
    outline: none;
}

.recovery-strategy-help-btn:focus-visible {
    outline: 2px solid #b45309;
    outline-offset: 2px;
}

.recovery-strategy-help-btn i {
    font-size: 14px;
}

.recovery-strategy-help-label {
    font-size: 12px;
}

/* 折叠策略全文：紧贴标题下，不占首屏大块 */
.recovery-strategy-flyout {
    margin: 0 20px 0 24px;
    padding: 0 0 12px 0;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.35);
}

.recovery-strategy-flyout[hidden] {
    display: none !important;
}

.recovery-strategy-flyout-inner {
    padding: 10px 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #78350f;
}

.recovery-strategy-flyout-lead {
    margin: 0 0 8px 0;
}

.recovery-strategy-flyout .recovery-strategy-detail-lead {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #92400e;
}

.recovery-strategy-flyout-list {
    margin: 0;
    padding-left: 1.1rem;
}

.recovery-strategy-flyout-list li {
    margin-bottom: 4px;
}

.recovery-module .recovery-module-body {
    padding-top: 12px;
}

