/* 药通网风格价格走势图样式 */
.ymt-price-chart-container {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 1200px;
}

.ymt-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ymt-price-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ymt-price-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.ymt-current-price {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.ymt-price-change {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.ymt-price-change.up {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.15);
}

.ymt-price-change.down {
    color: #52c41a;
    background: rgba(82, 196, 26, 0.15);
}

.ymt-price-change.stable {
    color: #faad14;
    background: rgba(250, 173, 20, 0.15);
}

.ymt-time-info {
    text-align: right;
}

.ymt-update-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ymt-chart-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    backdrop-filter: blur(10px);
}

.ymt-chart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ymt-time-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ymt-price-chart-container {
        padding: 12px 16px;
        margin: 0 10px;
    }
    
    .ymt-price-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ymt-price-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ymt-current-price {
        font-size: 18px;
    }
    
    .ymt-price-change {
        font-size: 12px;
    }
    
    .ymt-time-info {
        text-align: left;
        width: 100%;
    }
    
    .ymt-chart-container {
        padding: 8px;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .ymt-price-chart-container {
        padding: 10px 12px;
        border-radius: 6px;
    }
    
    .ymt-price-label {
        font-size: 13px;
    }
    
    .ymt-current-price {
        font-size: 16px;
    }
    
    .ymt-price-change {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .ymt-update-time {
        font-size: 11px;
    }
    
    .ymt-time-labels {
        font-size: 10px;
    }
}

/* 悬停效果 */
.ymt-price-chart-container:hover {
    background: linear-gradient(135deg, #2a5298, #3b5998);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* 动画效果 */
@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ymt-price-change {
    animation: pricePulse 2s ease-in-out infinite;
}